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