zahmis 5 лет назад
Родитель
Сommit
4aab2e2de0

+ 1 - 1
src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettings.jsx

@@ -25,7 +25,7 @@ const CustomBotWithoutProxySettings = (props) => {
 
 
   const getSlackWSInWithoutProxy = useCallback(async() => {
   const getSlackWSInWithoutProxy = useCallback(async() => {
     try {
     try {
-      const res = await appContainer.apiv3.get('/slack-integration/custom-bot-without-proxy-slack-workspace');
+      const res = await appContainer.apiv3.get('/slack-integration/custom-bot-without-proxy/slack-workspace-name');
       setSlackWSNameInWithoutProxy(res.data.slackWorkSpaceName);
       setSlackWSNameInWithoutProxy(res.data.slackWorkSpaceName);
     }
     }
     catch (err) {
     catch (err) {

+ 1 - 1
src/server/routes/apiv3/slack-integration.js

@@ -165,7 +165,7 @@ module.exports = (crowi) => {
    *          200:
    *          200:
    *            description: Succeeded to get slack ws name for custom bot without proxy
    *            description: Succeeded to get slack ws name for custom bot without proxy
    */
    */
-  router.get('/custom-bot-without-proxy-slack-workspace', async(req, res) => {
+  router.get('/custom-bot-without-proxy/slack-workspace-name', async(req, res) => {
     // get ws name in custom bot from slackbot token
     // get ws name in custom bot from slackbot token
     const slackBotToken = crowi.configManager.getConfig('crowi', 'slackbot:token');
     const slackBotToken = crowi.configManager.getConfig('crowi', 'slackbot:token');