Showing
1 changed file
with
0 additions
and
15 deletions
server.js
deleted
100644 → 0
1 | -const express = require('express'); | ||
2 | -const app = express(); | ||
3 | - | ||
4 | -app.listen(8080, function(){ | ||
5 | - console.log('listening on 8080'); | ||
6 | -}); | ||
7 | - | ||
8 | -app.get('/test', function(req, res){ | ||
9 | - res.send('test'); | ||
10 | -}); | ||
11 | - | ||
12 | -app.get('/', function(req, res){ | ||
13 | - res.sendFile(__dirname + '/main.html'); | ||
14 | - res.sendFile(__dirname + '/main.css'); | ||
15 | -}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment