-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
39 lines (29 loc) · 1.12 KB
/
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
var express = require('express');
var app = express();
var path = require('path');
//var favicon = require('express-favicon');
// Bootstrap and Jquery Config
// app.use('/', express.static(__dirname + '/www')); // redirect root
// app.use('/js', express.static(__dirname + '/node_modules/bootstrap/dist/js')); // redirect bootstrap JS
// app.use('/js', express.static(__dirname + '/node_modules/jquery/dist')); // redirect JS jQuery
// app.use('/css', express.static(__dirname + '/node_modules/bootstrap/dist/css')); // redirect CSS bootstrap
// path to favicon directory
//app.use(favicon(__dirname + '/public/kfavi3.png'));
// set the view engine to ejs
app.set('view engine', 'ejs');
// use res.render to load up an ejs view file
app.use( express.static( "public" ) );
// index page
app.get('/', function(req, res) {
res.render('page/index');
});
app.get('/list', function(req, res) {
res.render('page/list');
});
app.get('/assemble', function(req, res) {
res.render('page/assemble');
});
app.get('/funding', function(req, res) {
res.render('page/funding');
});
app.listen(80, () => console.log('MDC Bot Started...'));