mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
exposed bknd middlewares to be used for custom routes
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { auth, permission } from "auth/middlewares";
|
||||
import { Hono } from "hono";
|
||||
import type { ServerEnv } from "modules/Module";
|
||||
|
||||
const middlewares = {
|
||||
auth,
|
||||
permission
|
||||
} as const;
|
||||
import * as middlewares from "modules/middlewares";
|
||||
|
||||
export class Controller {
|
||||
protected middlewares = middlewares;
|
||||
|
||||
Reference in New Issue
Block a user