Skip to content

Commit

Permalink
fix: delete topic
Browse files Browse the repository at this point in the history
  • Loading branch information
Pleasurecruise committed Nov 29, 2024
1 parent 7237d8f commit 6c0ceff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/src/api/topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getTopicList = (params) => {
*/
export const deleteTopic = (id) => {
console.log('Deleting topic', id);
return request.delete(`/admin/delete/topic/${id}`).then(response => {
return request.delete(`/admin/topic/delete/${id}`).then(response => {
console.log('Topic deleted', response);
return response;
}).catch(error => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Result<PageInfo<CommentDTO>> getComment(@PathVariable Integer id) {
/**
* 根据话题id删除话题
*/
@DeleteMapping("/delete/topic/{id}")
@DeleteMapping("/delete/{id}")
@ApiOperation("根据话题id删除话题")
public Result<Void> deleteTopic(@PathVariable Integer id) {
log.info("删除话题:{}", id);
Expand Down

0 comments on commit 6c0ceff

Please sign in to comment.