Spaces:
Running
Running
File size: 405 Bytes
d50360d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import dotenv from "dotenv";
dotenv.config();
import express from "express";
import bodyParser from "body-parser";
import cors from "cors";
import path from 'path';
import { connection as databaseConnection } from "./database";
databaseConnection();
export const app = express();
app.use(cors());
app.use(express.json());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
|