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));
|
return new Response(paperService.update(paperDto));
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping("/{paper-id}")
|
||||||
public Response delete(Integer paperId) throws IOException {
|
public Response delete(@PathVariable("paper-id") Integer paperId) throws IOException {
|
||||||
paperService.delete(paperId);
|
paperService.delete(paperId);
|
||||||
return new Response(true);
|
return new Response(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user