Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harshit-paneri/role-based-auth


https://github.com/harshit-paneri/role-based-auth

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Role Based Access Control

### Install

``` git clone https://github.com/harshit-paneri/role-based-auth.git ```

``` cd role-based-auth ```

``` npm install ```

``` npm start ```

### All Endpoints

- Register Admin
``/api/users/register-admin``

![Alt text](image/register-admin.png)

- Register User
``/api/users/register-user``

![Alt text](image/register-user.png)

- Register Super User
``/api/users/register-super-user``
![Alt text](image/register-super-user.png)

- Login User
``/api/users/login-user``

![Alt text](image/login-user.png)

- Bad Request

![Alt text](image/login-user-bad-request.png)