Yuki Takei 5 лет назад
Родитель
Сommit
246ffe3f9f
1 измененных файлов с 21 добавлено и 0 удалено
  1. 21 0
      packages/growi-bot-proxy/src/controllers/slack.ts

+ 21 - 0
packages/growi-bot-proxy/src/controllers/slack.ts

@@ -0,0 +1,21 @@
+import { Controller, Get, Post } from '@tsed/common';
+
+@Controller('/slack')
+export class SlackCtrl {
+
+  @Post('/events')
+  handlewithBolt(): string {
+    return 'This action will be handled by bolt service.';
+  }
+
+  @Get('/oauth_redirect')
+  handleOauthRedirect(): string {
+    // see: https://slack.dev/bolt-js/ja-jp/concepts#authenticating-oauth
+    // see: https://slack.dev/node-slack-sdk/oauth#handling-the-oauth-redirect
+
+    // installer.handleCallback(req, res);
+
+    return '';
+  }
+
+}