Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Implementation fix for basic authentication
  • Loading branch information
MaraniMatias authored Jul 17, 2020
1 parent b0bcee2 commit 9779618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const basic = auth.basic({realm: 'Monitor Area'}, function(user, pass, callback)
// Set '' to config path to avoid middleware serving the html page (path must be a string not equal to the wanted route)
const statusMonitor = require('express-status-monitor')({ path: '' });
app.use(statusMonitor.middleware); // use the "middleware only" property to manage websockets
app.get('/status', auth.connect(basic), statusMonitor.pageRoute); // use the pageRoute property to serve the dashboard html page
app.get('/status', basic.check(statusMonitor.pageRoute)); // use the pageRoute property to serve the dashboard html page
```

## Using module with socket.io in project
Expand Down

0 comments on commit 9779618

Please sign in to comment.