permission system - permission formatting
This commit is contained in:
parent
d889f92643
commit
2f5d9d3f01
15 changed files with 352 additions and 18 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue