feat: basic admin interface
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
await protectAdminRoute(event);
|
||||
|
||||
return {
|
||||
registration: await getRegistrationMode(),
|
||||
// set when DISABLE_SIGNUP in the environment overrules the setting
|
||||
registrationLocked: isRegistrationLocked(),
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user