different views/routes by the type of user in express.js
问题 can we have an express app, with 2 different views/routes based on user type? Example: I have 2 user types admin and normal user, based on the user alter login, how can i redirect each user to different views/routes like after login admin user goes to admin dashboard and normal user goes to profile page, also keeping in mind that one type of user cannot assess other type of user's routes. Any input will be helpful Thanks 回答1: In a simplest way you could just change a view based on user's type