mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-01-11 22:05:08 +00:00
Update README.md
This commit is contained in:
parent
534f529b0c
commit
9c7681e2b4
@ -11,7 +11,7 @@
|
|||||||
import frontexpress from 'frontexpress';
|
import frontexpress from 'frontexpress';
|
||||||
const app = frontexpress();
|
const app = frontexpress();
|
||||||
|
|
||||||
// listen HTTP GET request on path (/)
|
// listen HTTP GET request on path (/hello)
|
||||||
app.get('/hello', (req, res) => {
|
app.get('/hello', (req, res) => {
|
||||||
document.querySelector('.content').innerHTML = '<p>Hello World</p>';
|
document.querySelector('.content').innerHTML = '<p>Hello World</p>';
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user