gateway 구분중
This commit is contained in:
+3
-3
@@ -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 {};
|
||||
Reference in New Issue
Block a user