client: Rename endpoint to codeblock-themes

This commit is contained in:
Elian Doran 2024-10-27 21:40:22 +02:00
parent 96b9042559
commit e65d4cdfbf
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ export default class HighlightingOptions extends OptionsWidget {
}
async optionsLoaded(options) {
const themes = await server.get("options/highlighting-themes");
const themes = await server.get("options/codeblock-themes");
this.$themeSelect.empty();
for (const theme of themes) {

View File

@ -218,7 +218,7 @@ function register(app: express.Application) {
apiRoute(PUT, '/api/options/:name/:value*', optionsApiRoute.updateOption);
apiRoute(PUT, '/api/options', optionsApiRoute.updateOptions);
apiRoute(GET, '/api/options/user-themes', optionsApiRoute.getUserThemes);
apiRoute(GET, '/api/options/highlighting-themes', optionsApiRoute.getSyntaxHighlightingThemes);
apiRoute(GET, '/api/options/codeblock-themes', optionsApiRoute.getSyntaxHighlightingThemes);
apiRoute(GET, '/api/options/locales', optionsApiRoute.getSupportedLocales);
apiRoute(PST, '/api/password/change', passwordApiRoute.changePassword);