exam/template/server.js

16 lines
331 B
JavaScript
Raw Normal View History

2017-06-10 16:36:54 +03:00
'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');
}