Compare commits
2 Commits
cd6cc9812a
...
31906f2010
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31906f2010 | ||
|
|
41cb2eb470 |
@@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(path = "/video" )
|
||||
@RequestMapping(path="/video")
|
||||
@CrossOrigin(origins = "http://localhost:3000")
|
||||
public class VideoController {
|
||||
|
||||
@@ -20,7 +20,7 @@ public class VideoController {
|
||||
private Long id;
|
||||
}
|
||||
|
||||
@PostMapping(path = "/video")
|
||||
@PostMapping(path = "/videos")
|
||||
public Response saveNewVideo(@RequestBody SaveNewVideoRequest request){
|
||||
|
||||
videoService.saveNewVideo(request);
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
spring.application.name=video_downloader
|
||||
spring.datasource.url = jdbc:postgresql://localhost:5432/videos
|
||||
spring.datasource.username = postgres
|
||||
spring.datasource.password = 5995
|
||||
spring.jpa.hibernate.ddl-auto = update
|
||||
Reference in New Issue
Block a user