mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
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:
4
web/src/api/open-api/api.ts
generated
4
web/src/api/open-api/api.ts
generated
@@ -2966,10 +2966,10 @@ export interface ServerStatsResponseDto {
|
||||
export interface ServerThemeDto {
|
||||
/**
|
||||
*
|
||||
* @type {SystemConfigThemeDto}
|
||||
* @type {string}
|
||||
* @memberof ServerThemeDto
|
||||
*/
|
||||
'theme': SystemConfigThemeDto;
|
||||
'customCss': string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user