updated README.md

This commit is contained in:
Camel Aissani 2016-07-17 11:14:13 +02:00
parent 9223011ebe
commit 534f529b0c

View File

@ -12,8 +12,8 @@ import frontexpress from 'frontexpress';
const app = frontexpress();
// listen HTTP GET request on path (/)
app.get('/', (req, res) => {
window.alert('Hello World');
app.get('/hello', (req, res) => {
document.querySelector('.content').innerHTML = '<p>Hello World</p>';
});
// listen HTTP GET request on API (/api/xxx)