16 lines
331 B
JavaScript
16 lines
331 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const express = require('express');
|
||
|
const bodyParser = require('body-parser');
|
||
|
const app = express();
|
||
|
app.use(bodyParser.json());
|
||
|
app.use(express.static('./'));
|
||
|
|
||
|
app.get('/...', f);
|
||
|
|
||
|
app.listen(3000, () => console.log('running at: http://localhost:3000'));
|
||
|
|
||
|
function f(request, response) {
|
||
|
response.end('ok');
|
||
|
}
|