Nodejs-User-Login-Register-Boilerplate-restful-api
It is a boilerplate Node js Mongo db and Expressjs Restful api. User can register, Login and Update their profile. It has two types of users. One is Admin and other is simple user. Admin can view all the users. User can only update their profile. Use two middlewares one for protected users and another for protecting the admin routes. Give it a try.