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 'dotenv/config';
import 'reflect-metadata';
import gatewayDB from './connectGatewayDB.js';
import express, { type Request, type Response } from "express"
import session from "express-session";
import path from 'node:path';
@@ -14,7 +14,7 @@ import { gatewayConfig } from './gatewayConfig.js';
(async () => {
gatewayDB.then(async (gatewayDB) => {
// create express app
const app = express()
app.use(express.json());
@@ -32,6 +32,6 @@ import { gatewayConfig } from './gatewayConfig.js';
console.log(`Gateway server has started on port ${gatewayConfig.port}`)
})().catch(error => console.log(error));
}).catch(error => console.log(error));
export default {};