reloaded 5 лет назад
Родитель
Сommit
46de355ab1
1 измененных файлов с 1 добавлено и 1 удалено
  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 });
   }