mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-01-25 23:46:18 +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();
|
||||
|
||||
// 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)
|
||||
|
Loading…
Reference in New Issue
Block a user