mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
|
|
// // import type { AppOpenAPI } from '$lib/server/api/common/types/hono';
|
||
|
|
// import { apiReference } from '@scalar/hono-api-reference';
|
||
|
|
// import { Hono } from 'hono';
|
||
|
|
//
|
||
|
|
// import type { AppBindings } from '$lib/server/api/common/types/hono';
|
||
|
|
// import { createOpenApiDocument } from 'hono-zod-openapi';
|
||
|
|
// import packageJSON from '../../../../package.json';
|
||
|
|
//
|
||
|
|
// // export default function configureOpenAPI(app: AppOpenAPI) {
|
||
|
|
// // app.doc('/doc', {
|
||
|
|
// // openapi: '3.0.0',
|
||
|
|
// // info: {
|
||
|
|
// // title: 'Bored Game API',
|
||
|
|
// // description: 'Bored Game API',
|
||
|
|
// // version: packageJSON.version,
|
||
|
|
// // },
|
||
|
|
// // });
|
||
|
|
// //
|
||
|
|
// // app.get(
|
||
|
|
// // '/reference',
|
||
|
|
// // apiReference({
|
||
|
|
// // theme: 'kepler',
|
||
|
|
// // layout: 'classic',
|
||
|
|
// // defaultHttpClient: {
|
||
|
|
// // targetKey: 'javascript',
|
||
|
|
// // clientKey: 'fetch',
|
||
|
|
// // },
|
||
|
|
// // spec: {
|
||
|
|
// // url: '/api/doc',
|
||
|
|
// // },
|
||
|
|
// // }),
|
||
|
|
// // );
|
||
|
|
// // }
|
||
|
|
//
|
||
|
|
// export default function configureOpenAPI(app: Hono<AppBindings>) {
|
||
|
|
// createOpenApiDocument(app, {
|
||
|
|
// info: {
|
||
|
|
// title: 'Example API',
|
||
|
|
// version: '1.0.0',
|
||
|
|
// },
|
||
|
|
// });
|
||
|
|
// }
|