mirror of
https://github.com/immich-app/immich.git
synced 2025-12-28 17:24:56 +03:00
* add initial ui and api definitions for stylesheets * proper saving * make custom css work * add textarea * rebuild api * run prettier * add typecast * update typings * move css accordion to be sorted alphabetically * set content-type properly * rename stylesheets to theme * fix server test
10 lines
318 B
TypeScript
10 lines
318 B
TypeScript
import { RequestHandler, text } from '@sveltejs/kit';
|
|
export const GET = (async ({ locals: { api } }) => {
|
|
const { customCss } = await api.systemConfigApi.getConfig().then((res) => res.data.theme);
|
|
return text(customCss, {
|
|
headers: {
|
|
'Content-Type': 'text/css',
|
|
},
|
|
});
|
|
}) satisfies RequestHandler;
|