gateway 구분중

This commit is contained in:
2023-08-18 16:20:10 +00:00
parent 87c239610a
commit 635d7f167d
8 changed files with 89 additions and 11 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import 'reflect-metadata';
import connectDB from './connectDB.js';
import express, { type Request, type Response } from "express"
import session from "express-session";
import path from 'node:path';
@@ -10,7 +10,7 @@ import { unwrap } from './util/unwrap.js';
import { sammoAPI } from './api/api.js';
import { ownConfig } from './serverConfig.js';
(async () => {
connectDB.then(async (db) => {
// create express app
const app = express()
app.use(express.json());
@@ -28,6 +28,6 @@ import { ownConfig } from './serverConfig.js';
console.log(`Express server has started on port ${ownConfig.port}`)
})().catch(error => console.log(error));
}).catch(error => console.log(error));
export default {};