member data views

This commit is contained in:
Julian Krauser 2024-12-18 12:55:03 +01:00
parent f4f293846b
commit 7ca51c3670
8 changed files with 314 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import express from "express";
import { configCheck, SERVER_PORT } from "./env.defaults";
configCheck();
import { PermissionObject } from "./type/permissionTypes";
declare global {
namespace Express {
export interface Request {
@ -16,12 +17,10 @@ declare global {
}
import { dataSource } from "./data-source";
dataSource.initialize();
const app = express();
import router from "./routes/index";
import { PermissionObject } from "./type/permissionTypes";
router(app);
app.listen(process.env.NODE_ENV ? SERVER_PORT : 5000, () => {
console.log(`listening on *:${SERVER_PORT}`);