|
@@ -71,7 +71,8 @@ public class VideosController {
|
|
|
|
|
|
@DeleteMapping("{id}")
|
|
|
public ResponseEntity<String> deleteVideoById(@PathVariable("id") String id) {
|
|
|
- return template.getForEntity(videosApi, String.class);
|
|
|
+ template.delete(videosApi+"/"+id);
|
|
|
+ return new ResponseEntity<String>("Video deleted", HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
|