fix papers delete
This commit is contained in:
parent
b140a61a9b
commit
3bede5f561
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user