Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/hono-openapi. A template project showing Hono's usage with OpenAPI and Valibot validatio
Something went wrong. Try again.
404 B · 19 lines
TypeScript
at main
1234567891011121314151617181920import { serve } from '@hono/node-server'import {app} from "./shared.ts";import { openAPISpecs } from 'hono-openapi'import { apiReference } from '@scalar/hono-api-reference'import {openAPIOptions} from "./constants/open-api.ts";
app.get( '/openapi', openAPISpecs(app, openAPIOptions))
app.get( '/docs', apiReference({ theme: 'saturn', spec: { url: '/openapi' }, }))serve(app);