Ver Fonte

add comments

zahmis há 5 anos atrás
pai
commit
8fb3f9f3f2
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/server/routes/apiv3/slack-integration-settings.js

+ 2 - 2
src/server/routes/apiv3/slack-integration-settings.js

@@ -256,8 +256,8 @@ module.exports = (crowi) => {
    *          200:
    *          200:
    *            description: Succeeded to update access token for slack
    *            description: Succeeded to update access token for slack
    */
    */
-  router.put('/access-token', async(req, res) => {
-    // TODO imple generate tokens at GW-5859
+  router.put('/access-tokens', async(req, res) => {
+    // TODO imple generate tokens at GW-5859. The following req.body is temporary.
     const { tokenGtoP, tokenPtoG } = req.body;
     const { tokenGtoP, tokenPtoG } = req.body;
     try {
     try {
       const slackAppTokens = await SlackAppIntegration.create({ tokenGtoP, tokenPtoG });
       const slackAppTokens = await SlackAppIntegration.create({ tokenGtoP, tokenPtoG });