From 5ec19973eb3d23046d874b097275857a58c23082 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 7 Jul 2021 20:45:06 +0200 Subject: api: Add endpoints for accessing project relations This change adds additional endpoints to the REST API to access the project relations, the portfolios and topologies that belong to a project. --- opendc-web/opendc-web-api/opendc/auth.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'opendc-web/opendc-web-api/opendc/auth.py') diff --git a/opendc-web/opendc-web-api/opendc/auth.py b/opendc-web/opendc-web-api/opendc/auth.py index 6db06fb1..d5da6ee5 100644 --- a/opendc-web/opendc-web-api/opendc/auth.py +++ b/opendc-web/opendc-web-api/opendc/auth.py @@ -40,10 +40,7 @@ def get_token(): parts = auth.split() if parts[0].lower() != "bearer": - raise AuthError({ - "code": "invalid_header", - "description": "Authorization header must start with Bearer" - }, 401) + raise AuthError({"code": "invalid_header", "description": "Authorization header must start with Bearer"}, 401) if len(parts) == 1: raise AuthError({"code": "invalid_header", "description": "Token not found"}, 401) if len(parts) > 2: -- cgit v1.2.3