reworked authentication and permission handling

This commit is contained in:
dswbx
2025-01-11 15:27:58 +01:00
parent 5823c2d245
commit bd4bc14282
20 changed files with 190 additions and 101 deletions

View File

@@ -2,11 +2,13 @@ import { auth, permission } from "auth/middlewares";
import { Hono } from "hono";
import type { ServerEnv } from "modules/Module";
const middlewares = {
auth,
permission
} as const;
export class Controller {
protected middlewares = {
auth,
permission
};
protected middlewares = middlewares;
protected create(): Hono<ServerEnv> {
return Controller.createServer();