程旭源 2 жил өмнө
parent
commit
f718e2f195

+ 9 - 0
admin_node/app/module/bar/controller/home.ts

@@ -16,4 +16,13 @@ export class HomeController {
     this.logger.info('hello egg logger');
     return 'hello egg';
   }
+
+  @HTTPMethod({
+    method: HTTPMethodEnum.POST,
+    path: '/',
+  })
+  async test() {
+    this.logger.info('我是测试POST请求');
+    return 'sssss';
+  }
 }