mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
client: Rename endpoint to codeblock-themes
This commit is contained in:
parent
96b9042559
commit
e65d4cdfbf
@ -62,7 +62,7 @@ export default class HighlightingOptions extends OptionsWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async optionsLoaded(options) {
|
async optionsLoaded(options) {
|
||||||
const themes = await server.get("options/highlighting-themes");
|
const themes = await server.get("options/codeblock-themes");
|
||||||
this.$themeSelect.empty();
|
this.$themeSelect.empty();
|
||||||
|
|
||||||
for (const theme of themes) {
|
for (const theme of themes) {
|
||||||
|
@ -218,7 +218,7 @@ function register(app: express.Application) {
|
|||||||
apiRoute(PUT, '/api/options/:name/:value*', optionsApiRoute.updateOption);
|
apiRoute(PUT, '/api/options/:name/:value*', optionsApiRoute.updateOption);
|
||||||
apiRoute(PUT, '/api/options', optionsApiRoute.updateOptions);
|
apiRoute(PUT, '/api/options', optionsApiRoute.updateOptions);
|
||||||
apiRoute(GET, '/api/options/user-themes', optionsApiRoute.getUserThemes);
|
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(GET, '/api/options/locales', optionsApiRoute.getSupportedLocales);
|
||||||
|
|
||||||
apiRoute(PST, '/api/password/change', passwordApiRoute.changePassword);
|
apiRoute(PST, '/api/password/change', passwordApiRoute.changePassword);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user