Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

562 B
Raw Blame
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>;