Skip to content

Commit de974b3

Browse files
Kang JinyeoungKang Jinyeoung
authored andcommitted
added temp.js that is for pratice
1 parent 9d2357e commit de974b3

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

server.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ var path = require('path');
66
app.set("view engine" , 'ejs');
77
app.use(express.static(path.join(__dirname , 'public')));
88

9-
// var data = { count : 0 };
109

1110
app.get('/' , function (req , res) {
1211
res.render('index');
@@ -16,18 +15,6 @@ app.get('/reset' , function (req , res) {
1615
res.render('index');
1716
});
1817

19-
20-
// app.get('/set/count' , function (req , res) {
21-
// if(req.query.count) data.count = req.query.count;
22-
// res.render('my_first_ejs' , data);
23-
// });
24-
25-
// app.get('/set/:num' , function (req , res) {
26-
// data.count=req.params.num;
27-
// res.render('my_first_ejs' , data);
28-
// });
29-
30-
3118
app.get('/about' , function (req , res) {
3219
res.render('about');
3320
});
@@ -39,4 +26,4 @@ app.get('/contact' , function (req , res) {
3926

4027
app.listen(8080,function(){
4128
console.log("Start at Server 8080");
42-
});
29+
});

temp.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// app.get('/set/count' , function (req , res) {
2+
// if(req.query.count) data.count = req.query.count;
3+
// res.render('my_first_ejs' , data);
4+
// });
5+
6+
// app.get('/set/:num' , function (req , res) {
7+
// data.count=req.params.num;
8+
// res.render('my_first_ejs' , data);
9+
// });

0 commit comments

Comments
 (0)