reloaded 5 years ago
parent
commit
46de355ab1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/comment.js

+ 1 - 1
app/controller/comment.js

@@ -12,7 +12,7 @@ class CommentController extends Controller {
     this.service = this.ctx.service.comment;
   }
 
-  async show() {
+  async index() {
     const res = await this.service.query(this.ctx.query);
     this.ctx.ok({ ...res });
   }