forked from UdacityFrontEndScholarship/udabuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
59 lines (56 loc) · 1.29 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
const express = require('express');
const hbs=require('hbs');
const app = express();
const path=require('path');
const port=process.env.PORT||3000;
app.set('view engine', 'hbs');
app.use('/bower_components', express.static(__dirname + '/bower_components'));
app.use(express.static(path.join(__dirname, 'public')));
app.get('/',(req,res)=>{
res.render('index');
});
app.get('/blogShow',(req,res)=>{
res.render('blogShow');
});
app.get('/dashboard',(req,res)=>{
res.render('dashboard');
});
app.get('/profile',(req,res)=>{
res.render('profile');
});
app.get('/resources',(req,res)=>{
res.render('resources');
});
app.get('/about',(req,res)=>{
res.render('about');
});
app.get('/blogDemo',(req,res)=>{
res.render('blogDemo');
});
app.get('/wofDemo',(req,res)=>{
res.render('wofDemo');
});
app.get('/blog',(req,res)=>{
res.render('blog');
});
app.get('/wof',(req,res)=>{
res.render('wof');
});
app.get('/signIn',(req,res)=>{
res.render('signIn');
});
app.get('/forum',(req,res)=>{
res.render('forum');
});
app.get('/showcase',(req,res)=>{
res.render('showcase');
});
app.get('/weekUpdates',(req,res)=>{
res.render('weekUpdates');
});
app.get('/about',(req,res)=>{
res.render('about.hbs');
});
app.listen(port,()=>{
console.log('Listening on port 3000');
});