Explorar el Código

implement route

itizawa hace 4 años
padre
commit
28b46c5fae
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      packages/slackbot-proxy/src/controllers/privacy.ts

+ 13 - 0
packages/slackbot-proxy/src/controllers/privacy.ts

@@ -0,0 +1,13 @@
+import { Controller, Get } from '@tsed/common';
+
+const isOfficialMode = process.env.OFFICIAL_MODE === 'true';
+
+@Controller('/privacy')
+export class SlackCtrl {
+
+  @Get('/')
+  async install(): Promise<string> {
+    return 'Privary Policy';
+  }
+
+}