이전 util 이전

This commit is contained in:
2023-08-05 15:34:26 +00:00
parent 5ba073c125
commit 8130c731e0
37 changed files with 72 additions and 694 deletions
+6 -2
View File
@@ -2,7 +2,7 @@ import 'dotenv/config';
import 'reflect-metadata';
import { BasicQueryDTO } from './api/index.js';
import { validate } from 'class-validator';
import express, { Request, Response } from "express"
import express, { type Request, type Response } from "express"
import { AppDataSource } from "./data_source"
import dotenv from "dotenv";
import session from "express-session";
@@ -23,6 +23,10 @@ export async function test() {
await test();
const ownConfig = {
sessionSecret: process.env.SESSION_SECRET,
port: Number(process.env.SERVER_PORT),
}
AppDataSource.initialize().then(async () => {
@@ -35,7 +39,7 @@ AppDataSource.initialize().then(async () => {
}))
app.set('etag', false);
app.use('/', rootRouter);
//app.use('/', rootRouter);
// start express server
app.listen(ownConfig.port)