From 7b90cbd829918f424bbf33ed0255ba1bf91f5314 Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Wed, 14 Feb 2024 10:12:02 +0100 Subject: [PATCH] Moved export_router to export plugin --- amarillo/plugins/enhancer/services/export_router.py | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 amarillo/plugins/enhancer/services/export_router.py diff --git a/amarillo/plugins/enhancer/services/export_router.py b/amarillo/plugins/enhancer/services/export_router.py deleted file mode 100644 index 582b64d..0000000 --- a/amarillo/plugins/enhancer/services/export_router.py +++ /dev/null @@ -1,12 +0,0 @@ -from fastapi import APIRouter, Depends -from amarillo.app.routers.agencyconf import verify_admin_api_key -from amarillo.plugins.enhancer.services.gtfs_generator import generate_gtfs - -export_router = APIRouter( - prefix="", - tags=["export"] -) - -@export_router.post("/export") -async def post_agency_conf(admin_api_key: str = Depends(verify_admin_api_key)): - generate_gtfs() \ No newline at end of file