IEEE-VIT/enigma8-backend

ifUsernameExists Middleware

aaryankotharii opened this issue · 3 comments

@IEEE-VIT/enigma-backend if a user has not set a username yet, none of the backend routes shall be accessible by the user. please add the code to make sure this is in place.

I think this is already happening in individual controllers, do you want to make a middleware out of it?
@ShubhamPalriwala @varunmurpani @Sidarth-V

con will be an increased db call for all the route.

Let's implement this as a middleware and remove it from the routes

merged to prod