Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 435 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 435 Bytes

How to use the project

run this command

node app.js

use these endpoints

for login use as POST verb

with one of these payloads:

{ "username": "admin", "password": "adminpassword" }
{ "username": "user", "password": "userpassword" }
http://localhost:3000/login

for login use as GET verb and put the token on header as Bearer

http://localhost:3000/protected