From 11f96f7e83253165258dd11cd1f496293a350969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 1 Dec 2023 23:02:29 +0100 Subject: [PATCH] code style --- src/c3nav/editor/newapi/endpoints.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/c3nav/editor/newapi/endpoints.py b/src/c3nav/editor/newapi/endpoints.py index 4de4fac9..0b7279b3 100644 --- a/src/c3nav/editor/newapi/endpoints.py +++ b/src/c3nav/editor/newapi/endpoints.py @@ -28,7 +28,7 @@ editor_api_router = APIRouter(tags=["editor"], auth=APITokenAuth(permissions={"e @editor_api_router.get('/bounds/', summary="Get editor map boundaries", response={200: BoundsSchema, **auth_permission_responses}) @newapi_etag() -def bounds(request): +def bounds(): return { "bounds": Source.max_bounds(), } @@ -107,5 +107,3 @@ def view_as_api(path: str): this is a mess. good luck. if you actually want to use this, poke us so we might add better documentation. """ raise NotImplementedError - -