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:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user