first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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))
|
||||
Reference in New Issue
Block a user