이전 util 이전
This commit is contained in:
+6
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user