-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.js
36 lines (28 loc) · 899 Bytes
/
server.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
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use('/public',express.static('public'));
app.use(bodyParser.urlencoded({extended : true}));
app.use(bodyParser.json());
// comment dala maine
app.get('/',(req,res)=>{
res.sendFile(__dirname + '/public/homepage.html');
});
app.get('/events',(req,res)=>{
res.sendFile(__dirname + '/public/events.html');
});
app.get('/contact',(req,res)=>{
res.sendFile(__dirname + '/public/contactus.html');
});
app.get('/appathonDetails',(req,res)=>{
res.sendFile(__dirname + '/public/appathonDetails.html');
});
app.get('/team',(req,res)=>{
res.sendFile(__dirname + '/public/Team.html');
});
app.get('/sponsors',(req,res)=>{
res.sendFile(__dirname + '/public/sponsors.html');
});
app.listen(process.env.PORT || 3000,()=>{
console.log('server is running at port 3000');
});