From 534f529b0cf82acda3dc0ed59d524c851fb42d42 Mon Sep 17 00:00:00 2001 From: Camel Aissani Date: Sun, 17 Jul 2016 11:14:13 +0200 Subject: [PATCH] updated README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9031929..8f81348 100644 --- a/README.md +++ b/README.md @@ -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 = '

Hello World

'; }); // listen HTTP GET request on API (/api/xxx)