mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 17:23:20 +03:00
* fix custom css requiring the user to be the admin and logged in * move theme api to custom endpoint * add e2e test
14 lines
324 B
TypeScript
14 lines
324 B
TypeScript
import { RequestHandler, text } from '@sveltejs/kit';
|
|
export const GET = (async ({ locals: { api } }) => {
|
|
const {
|
|
data: {
|
|
theme: { customCss },
|
|
},
|
|
} = await api.serverInfoApi.getTheme();
|
|
return text(customCss, {
|
|
headers: {
|
|
'Content-Type': 'text/css',
|
|
},
|
|
});
|
|
}) satisfies RequestHandler;
|