|
@@ -7,23 +7,10 @@ const router = express.Router();
|
|
|
module.exports = (crowi) => {
|
|
module.exports = (crowi) => {
|
|
|
this.app = crowi.express;
|
|
this.app = crowi.express;
|
|
|
const { boltService } = crowi;
|
|
const { boltService } = crowi;
|
|
|
- const endpoints = ['/hogehoge'];
|
|
|
|
|
|
|
+ const endpoints = ['/'];
|
|
|
for (const endpoint of endpoints) {
|
|
for (const endpoint of endpoints) {
|
|
|
- this.app.post(endpoint, boltService.receiver.requestHandler.bind(this));
|
|
|
|
|
|
|
+ router.post(endpoint, boltService.receiver.requestHandler.bind(this));
|
|
|
}
|
|
}
|
|
|
- // boltService.receiver.addRoutes(['/hoge']);
|
|
|
|
|
- // router.post('/', async(req, res) => {
|
|
|
|
|
-
|
|
|
|
|
- // // const boltApp = boltService.getBoltAppInstance(crowi);
|
|
|
|
|
-
|
|
|
|
|
- // // // TODO: improve event method
|
|
|
|
|
- // // boltApp.event('message', async({ event, client }) => {
|
|
|
|
|
- // // // Do some slack-specific stuff here
|
|
|
|
|
- // // await client.chat.postMessage('hogehoge');
|
|
|
|
|
- // // res.send('iii');
|
|
|
|
|
- // // });
|
|
|
|
|
- // });
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
return router;
|
|
return router;
|
|
|
};
|
|
};
|