- Replace mock Nitro routes with server-side proxies to the Go API - /plan reads Go /api/staffing; local assumption edits are a labeled preview - /simulate reads base and scenario staffing from Go instead of local multipliers - Route train upload and scenario POST through Nitro with server-only credentials - Keep NUXT_PUBLIC_USE_MOCK=1 as an explicit dev fallback only - Match Go's global-peak flat schedule and add a captured Go parity fixture - Run the web runtime as numeric UID/GID 10001:10001 - Add make check, Gitea CI workflow and a proxy smoke script
7 lines
254 B
TypeScript
7 lines
254 B
TypeScript
import { apiRequest, isMockMode } from '../utils/api'
|
|
|
|
export default defineEventHandler(async () => {
|
|
if (isMockMode()) return { ok: true, data: true, model: true }
|
|
return apiRequest<{ ok: boolean; data: boolean; model: boolean }>('/api/readyz')
|
|
})
|