♻️ Use of relative imports for api modules

This commit is contained in:
2023-10-22 23:34:58 +02:00
parent 0a7337a313
commit 1bb75b28eb
11 changed files with 20 additions and 20 deletions

View File

@@ -5,16 +5,16 @@ from typing import Sequence
from fastapi import APIRouter, HTTPException
from fastapi_cache.decorator import cache
from idfm_interface import Destinations as IdfmDestinations, TrainStatus
from models import Stop, StopArea, StopShape
from schemas import (
from ..idfm_interface import Destinations as IdfmDestinations, TrainStatus
from ..models import Stop, StopArea, StopShape
from ..schemas import (
NextPassage as NextPassageSchema,
NextPassages as NextPassagesSchema,
Stop as StopSchema,
StopArea as StopAreaSchema,
StopShape as StopShapeSchema,
)
from dependencies import idfm_interface
from ..dependencies import idfm_interface
router = APIRouter(prefix="/stop", tags=["stop"])