Reverting
This commit is contained in:
@@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping(path = "/video" )
|
@RequestMapping(path="/video")
|
||||||
@CrossOrigin(origins = "http://localhost:3000")
|
@CrossOrigin(origins = "http://localhost:3000")
|
||||||
public class VideoController {
|
public class VideoController {
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ public class VideoController {
|
|||||||
private Long id;
|
private Long id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping(path = "/video")
|
@PostMapping(path = "/videos")
|
||||||
public Response saveNewVideo(@RequestBody SaveNewVideoRequest request){
|
public Response saveNewVideo(@RequestBody SaveNewVideoRequest request){
|
||||||
|
|
||||||
videoService.saveNewVideo(request);
|
videoService.saveNewVideo(request);
|
||||||
|
|||||||
Reference in New Issue
Block a user