Closed ForbesLindesay closed 10 years ago
It would be useful to be able to have something like:
app.get('/', user.isAuthenticated, showAuthenticatedHomePage); app.get('/', showAnonymousHomePage);
That API wouldn't be sufficient to differentiate between that and:
app.all('/admin*', user.is('admin')); app.get('/admin/settings', showSettingsPage);
Perhaps we could support something like:
app.get('/', user.is('admin').here, showAdminHomePage); app.get('/', user.isAuthenticated.here, showAuthenticatedHomePage); app.get('/', showAnonymousHomePage);
This will be implemented in the next version
It would be useful to be able to have something like:
That API wouldn't be sufficient to differentiate between that and:
Perhaps we could support something like: