-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (29 loc) · 1.15 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const express = require("express");
const app = express();
const DB = require("./config/database");
const managesRouter = require("./manage/manages.router");
const schemesRouter = require("./schemes/schemes.router");
const foliosRouter = require("./folios/folios.router");
const transactionRouter = require("./transactions/transactions.router");
const analysisRouter = require("./analysis/analysis.router");
const investorsRouter = require("./investors/investors.router");
const groupsRouter = require("./group/groups.router");
const dbfRouter = require("./dbf/dbf.router");
const cartRouter = require("./cart/carts.router");
require("dotenv").config();
DB();
app.use(express.json({limit: '50mb'}));
app.use(express.urlencoded({limit: '50mb'}));
app.use("/manage",managesRouter);
app.use("/schemes",schemesRouter);
app.use("/folios",foliosRouter);
app.use("/transactions",transactionRouter);
app.use("/analysis",analysisRouter);
app.use("/investor",investorsRouter);
app.use("/groups",groupsRouter);
app.use("/dbf",dbfRouter);
app.use("/cart",cartRouter);
app.listen(process.env.PORT, () =>{
console.log("Server Connected: "+process.env.PORT);
});
//module.exports = app;