From 7e26fb068ffa8c2b8d93be0ac5d39da88796c919 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Mon, 8 Feb 2021 18:52:33 -0900 Subject: [PATCH] url hotfix --- frontend/src/api/themes.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/api/themes.js b/frontend/src/api/themes.js index bfac6d17912a..beeec4710702 100644 --- a/frontend/src/api/themes.js +++ b/frontend/src/api/themes.js @@ -1,14 +1,14 @@ import { baseURL } from "./api-utils"; import { apiReq } from "./api-utils"; -const prefix = baseURL + "themes/"; +const prefix = baseURL + "themes"; const settingsURLs = { allThemes: `${baseURL}themes`, - specificTheme: (themeName) => `${prefix}themes/${themeName}`, - createTheme: `${prefix}themes/create`, - updateTheme: (themeName) => `${prefix}themes/${themeName}`, - deleteTheme: (themeName) => `${prefix}themes/${themeName}`, + specificTheme: (themeName) => `${prefix}/${themeName}`, + createTheme: `${prefix}/create`, + updateTheme: (themeName) => `${prefix}/${themeName}`, + deleteTheme: (themeName) => `${prefix}/${themeName}`, }; export default {