Moved export_router to export plugin
All checks were successful
Amarillo/amarillo-gitea/amarillo-enhancer/pipeline/head This commit looks good

This commit is contained in:
Csaba 2024-02-14 10:12:02 +01:00
parent f8815411fd
commit 7b90cbd829

View file

@ -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()