mirror of
https://github.com/Dvorinka/Dash.git
synced 2026-10-28 15:51:27 +00:00
Establishes the skeleton every later phase builds on: Go+Gin API with zap logging, /api/healthz, SQLite+goose runner; Vite+React18+TS strict+ Tailwind v4 frontend with bento-mono theme tokens; openapi.yaml driving a generated TS client; oxlint with vendored anti-slop rules; GitHub CI; multi-stage Dockerfile -> 33.6MB distroless image; docker compose up serves the blank board. Generated with [Devin](https://devin.ai) Authored By: TDvorak <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
12 lines
461 B
TypeScript
12 lines
461 B
TypeScript
// Generated-client entrypoint. Types come from src/schema.d.ts, produced by
|
|
// `npm run generate` from ../../openapi.yaml — the API contract.
|
|
import createFetchClient from "openapi-fetch";
|
|
import type { paths } from "./schema.d.ts";
|
|
|
|
export type { paths, components } from "./schema.d.ts";
|
|
|
|
/** API client bound to the OpenAPI contract. Same-origin by default. */
|
|
export function createClient(baseUrl = "") {
|
|
return createFetchClient<paths>({ baseUrl });
|
|
}
|