Showing
1 changed file
with
18 additions
and
0 deletions
main.js
0 → 100644
1 | +var express = require('express') | ||
2 | +var app = express(); | ||
3 | +var path = require('path') | ||
4 | + | ||
5 | +var server = app.listen(8080,function(){ | ||
6 | + console.log("hello"); | ||
7 | +}) | ||
8 | + | ||
9 | +app.get('/',function(req,res){ | ||
10 | + return res.sendFile(__dirname +'/html/coin.html') | ||
11 | +}); | ||
12 | + | ||
13 | +app.get('/map',function(req,res){ | ||
14 | + return res.sendFile(__dirname +'/html/map.html') | ||
15 | +}); | ||
16 | + | ||
17 | +app.use(express.static(path.join(__dirname + 'public'))); | ||
18 | +//css 파일, jpg 파일 연동 x. | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment