MONGOURI = "Enter your mongodb URI here" SECRETORKEY = "Enter the unique secretOrKey for JWT"
Now, in the root directory, run
npm install
Then run
npm run dev
-
Create/Signup User
@type POST
@route /signup
@desc Register the user
@access Public -
Login User
@type POST
@route /login
@desc Register the user
@access Public -
Get Current user
@type GET
@route /home
@desc Get current user(from JWT and Passport Auth)
@access Private