move dotenv config from server index to the config file

This commit is contained in:
Bilal Catic
2020-02-18 11:05:47 +01:00
parent 742f1baba4
commit 020102cb27
2 changed files with 14 additions and 4 deletions

View File

@@ -1,11 +1,7 @@
import express from "express";
import dotenv from "dotenv";
import * as bodyParser from 'body-parser';
import * as routes from "./routes"
dotenv.config();
const app = express();
app.use(bodyParser.json());