diff options
author | 2020-12-24 08:13:59 +0200 | |
---|---|---|
committer | 2020-12-24 08:13:59 +0200 | |
commit | d04f23cc51716d49e10ea7714d6c4e2fc3815c48 (patch) | |
tree | f3630cd1794cfe62f14432d08129f91f60db12d8 /backend/routes/admin.py | |
parent | Check 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.py | 2 |
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) |