blob: 14fa79c550ef003e9fc4adbe07b93b0cbdf389cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
var express = require('express');
var app = express();
const PORT = 8008;
app.listen(PORT, function () {
console.log('listening! http://localhost:' + PORT + ' | http://' + require("ip").address() + ':' + PORT);
});
app.get('/', function (req:any, res:any) {
res.sendFile('index.html', {root: __dirname })
})
app.get('/crates.json', function (req:any, res:any) {
res.sendFile('crates.json', {root: __dirname })
});
|