mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
feat(threads): thread and forum API, admin, schemas and docs (#3251)
This commit is contained in:
1 parent
5f4295e399
commit
3f4160b138
495 files changed
+39232
-1215
No files matched your search
@@ -19,6 +19,7 @@ import {Hono} from 'hono';
|
||||
interface CreateAPIAppOptions {
|
||||
config: APIConfig;
|
||||
logger: ILogger;
|
||||
registerRoutes?: (routes: HonoApp) => void;
|
||||
}
|
||||
|
||||
interface APIAppResult {
|
||||
@@ -53,6 +54,7 @@ export async function createAPIApp(options: CreateAPIAppOptions): Promise<APIApp
|
||||
routes.onError(TelemetryAwareAppErrorHandler);
|
||||
routes.notFound(AppNotFoundHandler);
|
||||
registerControllers(routes, config);
|
||||
options.registerRoutes?.(routes);
|
||||
const app = new Hono<HonoEnv>({strict: true});
|
||||
const {middleware: metricsMiddleware, metricsHandler} = createMetricsMiddleware('api');
|
||||
app.use('*', metricsMiddleware);
|
||||
|
||||
Reference in new issue
Block a user