Moved files related to paths to a separated directory
This commit is contained in:
parent
4c7f07dd05
commit
10a6b6553d
5 changed files with 7 additions and 6 deletions
1
Makefile
1
Makefile
|
@ -16,5 +16,6 @@ docker:
|
|||
|
||||
clean:
|
||||
rm -rf app/__pycache__
|
||||
rm -rf app/paths/__pycache__
|
||||
rm -rf __pycache__
|
||||
rm -rf .mypy_cache
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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]
|
|
@ -3,7 +3,7 @@
|
|||
from fastapi import Request, Response
|
||||
|
||||
from . import paths
|
||||
from . import respond
|
||||
from .. import respond
|
||||
|
||||
|
||||
class MainPaths(paths.Paths):
|
Loading…
Add table
Reference in a new issue