10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
export default defineEventHandler(async (event) => {
|
|
await protectAdminRoute(event);
|
|
|
|
return {
|
|
registration: await getRegistrationMode(),
|
|
// set when DISABLE_SIGNUP in the environment overrules the setting
|
|
registrationLocked: isRegistrationLocked(),
|
|
};
|
|
});
|