|
|
@@ -263,13 +263,14 @@ module.exports = (crowi) => {
|
|
|
* /slack-integration/access-token:
|
|
|
* put:
|
|
|
* tags: [SlackIntegration]
|
|
|
- * operationId:
|
|
|
+ * operationId: putAccessToken
|
|
|
* summary: /slack-integration
|
|
|
* description: Generate accessToken
|
|
|
* responses:
|
|
|
* 200:
|
|
|
* description: Succeeded to update access token for slack
|
|
|
*/
|
|
|
+
|
|
|
router.put('/access-tokens', loginRequiredStrictly, adminRequired, csrf, async(req, res) => {
|
|
|
const SlackAppIntegration = mongoose.model('SlackAppIntegration');
|
|
|
let checkTokens;
|