-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
39 lines (30 loc) · 913 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
// let express = require('express');
// bodyParser = require('body-parser');
// let port = process.env.PORT || 3000;
// let app = express();
// app.use(express.static(__dirname + './views'));
// app.use('/css', express.static('css'));
// app.use('/img', express.static('img'));
// app.use('/js', express.static('js'));
// app.use('/scss', express.static('scss'));
// app.use('/vendor', express.static('vendor'));
// app.use(bodyParser.urlencoded({
// extended: false
// }));
// app.use(bodyParser.json());
// app.set('view engine', 'ejs');
// app.get('/', (req, res) => {
// res.render('index');
// })
// app.get('/account', (req, res) => {
// res.render('account');
// })
// app.get('/add', (req, res) => {
// res.render('add');
// })
// app.get('*', (req, res) => {
// res.render('four');
// })
// app.listen(port, () => {
// console.log(`Server is up on port ${port}`);
// });