exam/server.js
Märt Kalmo 1f0f9a85ed 1st
2017-05-19 14:53:27 +03:00

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');
}