mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +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