Tuesday 27 November 2018

How can I restrict users to SOME of my API

For example, if users are temporarily banned, they're not allow to access anything starting with /api/feature.Right now, I'm adding a check of users' ban in every middleware where I am restricting them to. Is there an easier way?

Submitted November 28, 2018 at 03:54AM by eggtart_prince

No comments:

Post a Comment