-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
executable file
·39 lines (27 loc) · 863 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
28
29
30
31
32
33
34
35
36
37
38
39
// Dependencies
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
// var helmet = require('helmet');
// Routes
var index = require('./routes/index');
var signup = require('./routes/signup');
var Upload = require('./routes/upload');
var Modify = require('./routes/modify');
var session = require('express-session');
// App
var app = express();
// Add path
app.use(express.static(path.join(__dirname, 'public')));
// app.use(express.static(path.join(__dirname, 'view')));
// app.use(session({
// secret: 'ActuallyIReallyDontKnowWhyLamIsFuckingHandsome'
// }));
app.use(favicon(__dirname + '/public/images/left_top_logo.ico'));
// app.use(helmet());
// Route Service
app.use('/', index);
app.use('/SignUp', signup);
// // app.use('/upload', Upload);
app.use('/Modify', Modify);
module.exports = app;