permission system - permission formatting

This commit is contained in:
Julian Krauser 2024-08-26 13:47:08 +02:00
parent d889f92643
commit 2f5d9d3f01
15 changed files with 352 additions and 18 deletions

View file

@ -9,7 +9,7 @@ declare global {
export interface Request {
userId: string;
username: string;
rights: Array<string>;
rights: PermissionObject;
}
}
}
@ -20,6 +20,7 @@ dataSource.initialize();
const app = express();
import router from "./routes/index";
import { PermissionObject } from "./type/permissionTypes";
router(app);
app.listen(SERVER_PORT, () => {
console.log(`listening on *:${SERVER_PORT}`);