aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/admin.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-24 08:13:59 +0200
committerGravatar GitHub <[email protected]>2020-12-24 08:13:59 +0200
commitd04f23cc51716d49e10ea7714d6c4e2fc3815c48 (patch)
treef3630cd1794cfe62f14432d08129f91f60db12d8 /backend/routes/admin.py
parentCheck is user already admin before adding (diff)
Update admin add route docstring
Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'backend/routes/admin.py')
-rw-r--r--backend/routes/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/admin.py b/backend/routes/admin.py
index ff329fa..5254f8b 100644
--- a/backend/routes/admin.py
+++ b/backend/routes/admin.py
@@ -28,7 +28,7 @@ class AdminRoute(Route):
tags=["admin"]
)
async def post(self, request: Request) -> JSONResponse:
- """Inserts new administrator user to DB."""
+ """Grant a user administrator privileges."""
data = await request.json()
admin = AdminModel(**data)