mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-01-11 00:55:07 +00:00
Update README.md
This commit is contained in:
parent
b22725acd0
commit
5620117e6c
@ -18,12 +18,12 @@ import frontexpress from 'frontexpress';
|
||||
// Front-end application
|
||||
const app = frontexpress();
|
||||
|
||||
// navigation on path /page1
|
||||
// front-end logic on navigation path "/page1"
|
||||
app.get('/page1', (req, res) => {
|
||||
document.querySelector('.content').innerHTML = `<h1>Page 1 content</h1>`;
|
||||
});
|
||||
|
||||
// navigation on path /page2
|
||||
// front-end logic on navigation path "/page2"
|
||||
app.get('/page2', (req, res) => {
|
||||
document.querySelector('.content').innerHTML = `<h1>Page 2 content</h1>`;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user