aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorcurly <curly@infernal.garden>2024-07-17 16:28:00 -0600
committercurly <curly@infernal.garden>2024-07-17 16:28:00 -0600
commitd8f80c973159813a5937395a0f53c042b0c738c2 (patch)
tree80262321caf5df57445d57af4e664f9dbbe5c4d9 /README.md
parent2d6f29228c3379debcc9f6395a50e2f2f6a1910e (diff)
downloadpoko_server-d8f80c973159813a5937395a0f53c042b0c738c2.tar.gz
poko_server-d8f80c973159813a5937395a0f53c042b0c738c2.tar.bz2
poko_server-d8f80c973159813a5937395a0f53c042b0c738c2.zip
make new keys with admin user
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index 72fa1a3..f50493e 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@
- JSON `{"id": "ID", "session": "SESSION_KEY"}`
- Response
- 200 Ok
- - JSON `{"name": "NAME", "id": "ID", tokovec: [{"color": "COLOR", "amount": 2}, ..]}`
+ - JSON `{"name": "NAME", "id": "ID", is_admin: bool, tokovec: [{"color": "COLOR", "amount": 2}, ..]}`
- 404 Not Found
- JSON `"Not Found"`
- JSON `"Not Authenticated"`
@@ -103,4 +103,11 @@
- JSON `{"id": "ID", "session": "SESSION_KEY", "name": "USERNAME"}`
- Response
- 200 Ok
- - 500 Internal Server Error` \ No newline at end of file
+ - 500 Internal Server Error
+- POST `/admin/regkey/new`
+ - Request
+ - JSON `{"id": "ID", "session": "SESSION_KEY", "key": "REGISTRATION_KEY"}`
+ - Response
+ - 200 Ok
+ - 500 Internal Server Error
+ - JSON `"Not an admin"` \ No newline at end of file