move dotenv config from server index to the config file
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user