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 {