chikinz/README.md
Paul Mathieu 0c9c893237 Add backend
With jwt authentication.

- POST /toktok {password} -> {token}
- GET /bandz -> {bandz}
- POST /wrap -> {id}
2022-09-07 12:40:19 +02:00

384 B

chikinz

yarn install

Launch:

node index

Service then available at [http://localhost:3000]

Get a token:

curl -H 'Content-Type: application/json' -d '{"password": "..."}' http://localhost:3000/toktok

Use the token:

curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <<token here>>' -d '{data}' http://localhost:3000/wrap