liuyu 4 tahun lalu
induk
melakukan
d97e3dae48
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      app/controller/group.js

+ 4 - 1
app/controller/group.js

@@ -32,7 +32,10 @@ class GroupController extends Controller {
     this.ctx.ok({ msg: 'ok', data: res });
   }
 
-
+  async index() {
+    const data = await this.service.query(this.ctx.query);
+    this.ctx.ok({ ...data });
+  }
 }
 
 module.exports = CrudController(GroupController, meta);