Files
drop/server/api/v1/settings/index.get.ts
2025-09-20 11:21:53 +10:00

14 lines
475 B
TypeScript

import aclManager from "~~/server/internal/acls";
import { applicationSettings } from "~~/server/internal/config/application-configuration";
export default defineEventHandler(async (h3) => {
const allowed = await aclManager.getUserACL(h3, ["settings:read"]);
if (!allowed) throw createError({ statusCode: 403 });
const showGamePanelTextDecoration = await applicationSettings.get(
"showGamePanelTextDecoration",
);
return { showGamePanelTextDecoration };
});