- Notifications
You must be signed in to change notification settings - Fork48
Open
Labels
Description
Admin Interface
Time to create a legit admin interface for this project. It should include
Admin's should sign-in at the same place everyone else does.
/admin: An admin home page, with quick insights related to page views and statistical graphs./admin/users: A queryable user table usingvuetify data tables, #6 and some server side magic. Admins should have the ability to revoke tokens from users, delete users, or revoke their current passwords.Protecting routes on the API should be as simple as throwing an option in the authenticate middleware. ex:
router.get('/admin', authenticate({ role: ['admin', 'owner'] }), index.get)"401 Unauthorized" errors should follow suit withexpress-server-error.js.