mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-02-10 19:39:16 +00:00
Update README.md
This commit is contained in:
parent
893d39e765
commit
27da6f94bf
@ -30,7 +30,6 @@ import frontexpress from 'frontexpress';
|
||||
const app = frontexpress();
|
||||
|
||||
// navigation raising an HTTP 401
|
||||
|
||||
// display an alert
|
||||
app.use((req, res, next) => {
|
||||
if (res.status === 401) {
|
||||
@ -68,7 +67,6 @@ app.listen(() => {
|
||||
// make an ajax request to get restricted page content from backend
|
||||
app.httpGet('/pages/restricted');
|
||||
});
|
||||
|
||||
});
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user