Added /api/config

This commit is contained in:
WardPearce
2026-02-23 02:17:42 +13:00
parent 9657551a66
commit 598c17889d
@@ -0,0 +1,13 @@
import { isOwnBackend } from '$lib/shared';
import { error, json } from '@sveltejs/kit';
export async function GET() {
const backend = isOwnBackend();
if (!backend) throw error(404, 'Not found');
return json({
...backend,
version: import.meta.env.APP_VERSION,
backend: 'materialious'
});
}