refactor(api): 🚚 Refactor authentication middleware and implement some OpenAPI routes

This commit is contained in:
Jesse Wierzbinski 2024-08-27 17:20:36 +02:00
parent edf5edca9f
commit 1ab1c68d36
No known key found for this signature in database
66 changed files with 383 additions and 279 deletions

View file

@ -1,7 +1,8 @@
import type { OpenAPIHono } from "@hono/zod-openapi";
import type { Config } from "~/packages/config-manager/config.type";
import type { HonoEnv } from "~/types/api";
export const createServer = (config: Config, app: OpenAPIHono) =>
export const createServer = (config: Config, app: OpenAPIHono<HonoEnv>) =>
Bun.serve({
port: config.http.bind_port,
reusePort: true,