Closed aniketgargya closed 1 year ago
Added a guard to be used for protected routes.
The database collection should be named roles and each document should take the following form:
roles
{ "_id": { "$oid": "649a380b3ccb62010eee8a49" }, "email": "xxxxxxxx@illinois.edu", "role": "Admin" }
Example usage of the guard is provided in the @Patch(':id') route.
@Patch(':id')
Added a guard to be used for protected routes.
The database collection should be named
roles
and each document should take the following form:Example usage of the guard is provided in the
@Patch(':id')
route.