fix papers delete

This commit is contained in:
Anton Romanov 2018-05-05 11:14:37 +04:00
parent b140a61a9b
commit 3bede5f561

View File

@ -38,8 +38,8 @@ public class PaperController {
return new Response(paperService.update(paperDto));
}
@DeleteMapping
public Response delete(Integer paperId) throws IOException {
@DeleteMapping("/{paper-id}")
public Response delete(@PathVariable("paper-id") Integer paperId) throws IOException {
paperService.delete(paperId);
return new Response(true);
}