mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
* web: standardize theme api response * revert makefile change that i didn't mean to commit
12 lines
302 B
TypeScript
12 lines
302 B
TypeScript
import { RequestHandler, text } from '@sveltejs/kit';
|
|
export const GET = (async ({ locals: { api } }) => {
|
|
const {
|
|
data: { customCss },
|
|
} = await api.serverInfoApi.getTheme();
|
|
return text(customCss, {
|
|
headers: {
|
|
'Content-Type': 'text/css',
|
|
},
|
|
});
|
|
}) satisfies RequestHandler;
|