This commit is contained in:
decolua 2026-01-27 10:49:16 +07:00
parent d3dd8686fe
commit 79342c0c3e
17 changed files with 1586 additions and 214 deletions

View file

@ -7,7 +7,11 @@ export async function GET() {
const settings = await getSettings();
// Don't return the password hash to the client
const { password, ...safeSettings } = settings;
return NextResponse.json(safeSettings);
// Add ENABLE_REQUEST_LOGS from env
const enableRequestLogs = process.env.ENABLE_REQUEST_LOGS === "true";
return NextResponse.json({ ...safeSettings, enableRequestLogs });
} catch (error) {
console.log("Error getting settings:", error);
return NextResponse.json({ error: error.message }, { status: 500 });