Files
veridian/server/api/instance.get.ts
T

7 lines
273 B
TypeScript

// Public on purpose: the sign in pages ask this before anyone is signed in.
export default defineEventHandler(async () => {
const [setupNeeded, registration] = await Promise.all([isSetupNeeded(), getRegistrationMode()]);
return { setupNeeded, registration };
});