-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
113 lines (111 loc) · 2.14 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
var express = require('express');
var app = express();
var list = [
{
"id":0,
"wName":"TechPark5",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":1000,
"monthlyRates":25000,
"hourlyRates":100,
"inst":"Book Now"
},
{
"id":1,
"wName":"Tech2",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":1000,
"monthlyRates":2534000,
"HourlyRates":1050,
"inst":"Book Now"
},
{
"id":2,
"wName":"Tech3",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":1000,
"monthlyRates":25000,
"HourlyRates":100,
"inst":"Book Now"
},
{
"id":3,
"wName":"Tech4",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":10050,
"monthlyRates":25000,
"HourlyRates":1060,
"inst":"Book Now"
},
{
"id":4,
"wName":"Tech5",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":1000,
"monthlyRates":25000,
"HourlyRates":100,
"inst":"Book Now"
},
{
"id":5,
"wName":"Tech6",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":1000,
"monthlyRates":25000,
"HourlyRates":100,
"inst":"Book Now"
},
{
"id":6,
"wName":"Tech7",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":1000,
"monthlyRates":25000,
"HourlyRates":100,
"inst":"Book Now"
},
{
"id":7,
"wName":"Tech1",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":1000,
"monthlyRates":25000,
"HourlyRates":100,
"inst":"Book Now"
},
{
"id":8,
"wName":"Tech8",
"WType":"OpenDesk",
"capacity":10,
"availability":"Available",
"dailyRates":10050,
"monthlyRates":2000,
"HourlyRates":1040,
"inst":"Book Now"
}
]
app.get('/getWorkspaces',function(req,res){
console.log("got hit");
res.send(list);
})
app.listen(3000,function(){
console.log("Server is running at 3000");
});
app.use(express.static(__dirname+'/common-ui'));