Added a user system with no proper user validation but working authorisation.
This commit is contained in:
3
backend/requests/gamenights.sh
Normal file
3
backend/requests/gamenights.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
echo $JWT
|
||||
|
||||
curl -X GET -H "Authorization: Bearer ${JWT}" localhost:8000/api/gamenights
|
||||
1
backend/requests/login.sh
Normal file
1
backend/requests/login.sh
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST -H "Content-Type: application/json" -d '{"username": "a", "password": "c"}' localhost:8000/api/login
|
||||
1
backend/requests/register.sh
Normal file
1
backend/requests/register.sh
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST -H "Content-Type: application/json" -d '{"username": "a", "email": "b", "password": "c", "password_repeat": "d"}' localhost:8000/api/register
|
||||
Reference in New Issue
Block a user