From 2db7bbffccd127e48cf67caf245e710d60ddf13a Mon Sep 17 00:00:00 2001 From: Nicola Farmer Date: Wed, 9 Oct 2024 17:02:38 +0100 Subject: [PATCH] Edit path to quotas endpoint to be /catalog/quota --- nlds/main.py | 10 +++++----- nlds/routers/quota.py | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/nlds/main.py b/nlds/main.py index 76892e6a..8d26579e 100644 --- a/nlds/main.py +++ b/nlds/main.py @@ -32,6 +32,11 @@ tags = ["find",], prefix = PREFIX + "/catalog/find" ) +nlds.include_router( + quota.router, + tags = ["quota", ], + prefix = PREFIX + "/catalog/quota" +) nlds.include_router( status.router, tags = ["status",], @@ -57,8 +62,3 @@ tags = ["init", ], prefix = PREFIX + "/init" ) -nlds.include_router( - quota.router, - tags = ["quota", ], - prefix = PREFIX + "/quota" -) \ No newline at end of file diff --git a/nlds/routers/quota.py b/nlds/routers/quota.py index ad292562..3f4eb35c 100644 --- a/nlds/routers/quota.py +++ b/nlds/routers/quota.py @@ -54,6 +54,7 @@ async def get(token: str = Depends(authenticate_token), RMQP.MSG_USER: user, RMQP.MSG_GROUP: group, RMQP.MSG_TOKEN: token, + RMQP.MSG_API_ACTION: api_action }, RMQP.MSG_DATA: {}, RMQP.MSG_TYPE: RMQP.MSG_TYPE_STANDARD