Moved files related to paths to a separated directory

This commit is contained in:
DarkCat09 2023-02-19 16:27:55 +04:00
parent 4c7f07dd05
commit 10a6b6553d
5 changed files with 7 additions and 6 deletions

View file

@ -16,5 +16,6 @@ docker:
clean:
rm -rf app/__pycache__
rm -rf app/paths/__pycache__
rm -rf __pycache__
rm -rf .mypy_cache

View file

@ -5,9 +5,9 @@ from fastapi.staticfiles import StaticFiles
from . import common
# Add your paths here
from .paths import Paths
from . import pages
from . import errors
from .paths.paths import Paths
from .paths import pages
from .paths import errors
paths: List[Type[Paths]] = [
pages.MainPaths,

View file

@ -6,8 +6,8 @@ from fastapi import Request, Response
from fastapi import HTTPException
from . import paths
from . import respond
from . import common
from .. import respond
from .. import common
# Add other HTTP error codes
codes = [404, 500]

View file

@ -3,7 +3,7 @@
from fastapi import Request, Response
from . import paths
from . import respond
from .. import respond
class MainPaths(paths.Paths):