-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
27 lines (23 loc) · 818 Bytes
/
app.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
const express = require("express");
const app = express();
require("body-parser");
const path = require('path')
app.set('views', path.join(__dirname, 'views'))
app.set('view engine', 'ejs')
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
const passport = require("passport");
require("./config/passport");
app.use(passport.initialize());
app.use(express.static('public'));
const public_routes = require("./routes/public.routes");
const register_routes = require("./routes/register.routes");
const login_routes = require("./routes/login.routes");
const tax_routes = require("./routes/tax.routes");
const chart_routes = require("./routes/chart.routes");
app.use(public_routes)
app.use(register_routes)
app.use(login_routes)
app.use(tax_routes)
app.use(chart_routes);
module.exports = app;