Added a user system with no proper user validation but working authorisation.

This commit is contained in:
Roflin committed 2022-04-20 22:28:00 +02:00
1 parent ee500203e2
commit af0dcee159
42 files changed
+28429 -185

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
echo $JWT
curl -X GET -H "Authorization: Bearer ${JWT}" localhost:8000/api/gamenights
+1
View File
@@ -0,0 +1 @@
curl -X POST -H "Content-Type: application/json" -d '{"username": "a", "password": "c"}' localhost:8000/api/login
+1
View 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