From c4b472b047c7d5eb2da24ea768e1bba4e5800343 Mon Sep 17 00:00:00 2001 From: Ziyad Khalil Date: Sat, 17 Jul 2021 09:21:02 +0200 Subject: [PATCH] reverted --- auth/index.ts | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/auth/index.ts b/auth/index.ts index e645a04..4c66ef0 100644 --- a/auth/index.ts +++ b/auth/index.ts @@ -6,8 +6,6 @@ import { signupRouter } from "./src/routes/signup"; import { loginRouter } from "./src/routes/login"; import { verifyRouter } from "./src/routes/verify"; import { connectDb } from "./src/models/connection"; -import https from "https"; -import http from "http"; const app = express(); connectDb().then(() => { @@ -25,14 +23,9 @@ app.use(loginRouter); app.use(verifyRouter); -const port = 443; +const port = 4002; -// app.listen(port, () => { -// // eslint-disa ble-next-line no-console -// console.log(`Auth app listening at http://localhost:${port}`); -// }); - -https.createServer(app).listen(port); -http.createServer(app).listen(8080); - -// https.createServer({}, app).listen(80); +app.listen(port, () => { + // eslint-disa ble-next-line no-console + console.log(`Auth app listening at http://localhost:${port}`); +});