refactor(server, web): standardize theme api response (#4664)

* web: standardize theme api response

* revert makefile change that i didn't mean to commit
This commit is contained in:
Wingy
2023-10-26 19:32:33 -07:00
committed by GitHub
parent 7ff68223ab
commit a08a687951
10 changed files with 22 additions and 28 deletions

View File

@@ -2966,10 +2966,10 @@ export interface ServerStatsResponseDto {
export interface ServerThemeDto {
/**
*
* @type {SystemConfigThemeDto}
* @type {string}
* @memberof ServerThemeDto
*/
'theme': SystemConfigThemeDto;
'customCss': string;
}
/**
*

View File

@@ -1,9 +1,7 @@
import { RequestHandler, text } from '@sveltejs/kit';
export const GET = (async ({ locals: { api } }) => {
const {
data: {
theme: { customCss },
},
data: { customCss },
} = await api.serverInfoApi.getTheme();
return text(customCss, {
headers: {