-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
27 lines (20 loc) · 769 Bytes
/
app.js
File metadata and controls
27 lines (20 loc) · 769 Bytes
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
var express = require('express');
var app = express();
app.use('/node_modules', express.static(__dirname + '/node_modules'));
app.use('/style', express.static(__dirname + '/style'));
app.use('/script', express.static(__dirname + '/script'));
app.get('/',function(req,res){
res.sendFile('home.html',{'root': __dirname + '/templates'});
})
app.get('/SignInPage',function(req,res){
res.sendFile('signin.html',{'root': __dirname + '/templates'});
})
app.get('/SignUpPage',function(req,res){
res.sendFile('signup.html',{'root':__dirname + '/templates'})
})
app.get('/WelcomePage',function(req,res){
res.sendFile('welcome.html',{'root':__dirname + '/templates'})
})
app.listen(8000,function(){
console.log('Node Server running @ http://localhost:8000')
});