mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-02-04 13:10:14 +00:00
updated README.md
This commit is contained in:
parent
9223011ebe
commit
534f529b0c
@ -12,8 +12,8 @@ import frontexpress from 'frontexpress';
|
|||||||
const app = frontexpress();
|
const app = frontexpress();
|
||||||
|
|
||||||
// listen HTTP GET request on path (/)
|
// listen HTTP GET request on path (/)
|
||||||
app.get('/', (req, res) => {
|
app.get('/hello', (req, res) => {
|
||||||
window.alert('Hello World');
|
document.querySelector('.content').innerHTML = '<p>Hello World</p>';
|
||||||
});
|
});
|
||||||
|
|
||||||
// listen HTTP GET request on API (/api/xxx)
|
// listen HTTP GET request on API (/api/xxx)
|
||||||
|
Loading…
Reference in New Issue
Block a user