member data views
This commit is contained in:
parent
f4f293846b
commit
7ca51c3670
8 changed files with 314 additions and 2 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue