13 lines
421 B
Python
13 lines
421 B
Python
from fastapi import APIRouter
|
|
|
|
from app.models.landcover import LandcoverPathRequest, LandcoverPathResponse
|
|
from app.routers.errors import as_501
|
|
from app.services import landcover as landcover_service
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.post("/path", response_model=LandcoverPathResponse)
|
|
def path(request: LandcoverPathRequest) -> LandcoverPathResponse:
|
|
return as_501(lambda: landcover_service.path_landcover(request))
|