Spaces:
Sleeping
Sleeping
File size: 562 Bytes
98fbc6d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import { z } from 'zod';
/**
* Public config contract — the unauthenticated /api/config endpoint.
*
* This is the only public (non-authenticated) endpoint in the L2 bundle: the
* login page reads it before a user signs in to pick the initial language. The
* legacy route (server/src/routes/publicConfig.ts) returns just the server's
* configured default language, so the response is intentionally minimal.
*/
export const publicConfigSchema = z.object({
defaultLanguage: z.string(),
});
export type PublicConfig = z.infer<typeof publicConfigSchema>;
|