Return database values in GET endpoints; add overrides info route; remove comments

- GET endpoints now return raw database values (not overridden values)
- Created /api/admin/overrides route that returns which fields are overridden by env vars
- Removed comments from POST endpoints
- Admin panel can now show database values and display indicators for overridden fields

Co-authored-by: kaaax0815 <32197462+kaaax0815@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-14 13:52:54 +00:00
parent 11ab71b5d2
commit 268916782d
8 changed files with 27 additions and 18 deletions
-3
View File
@@ -8,9 +8,6 @@ export default definePermissionEventHandler(
event,
validateZod(GeneralUpdateSchema, event)
);
// Allow all updates to be saved to database
// Overrides will be applied when reading/using the values
await Database.general.update(data);
return { success: true };
}