reloaded %!s(int64=4) %!d(string=hai) anos
pai
achega
2b0a90dccc
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/controller/group.js

+ 5 - 0
app/controller/group.js

@@ -31,6 +31,11 @@ class GroupController extends Controller {
     const res = await this.service.findbystuid(this.ctx.request.body);
     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);