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:
|
clean:
|
||||||
rm -rf app/__pycache__
|
rm -rf app/__pycache__
|
||||||
|
rm -rf app/paths/__pycache__
|
||||||
rm -rf __pycache__
|
rm -rf __pycache__
|
||||||
rm -rf .mypy_cache
|
rm -rf .mypy_cache
|
||||||
|
|
|
@ -5,9 +5,9 @@ from fastapi.staticfiles import StaticFiles
|
||||||
from . import common
|
from . import common
|
||||||
|
|
||||||
# Add your paths here
|
# Add your paths here
|
||||||
from .paths import Paths
|
from .paths.paths import Paths
|
||||||
from . import pages
|
from .paths import pages
|
||||||
from . import errors
|
from .paths import errors
|
||||||
|
|
||||||
paths: List[Type[Paths]] = [
|
paths: List[Type[Paths]] = [
|
||||||
pages.MainPaths,
|
pages.MainPaths,
|
||||||
|
|
|
@ -6,8 +6,8 @@ from fastapi import Request, Response
|
||||||
from fastapi import HTTPException
|
from fastapi import HTTPException
|
||||||
|
|
||||||
from . import paths
|
from . import paths
|
||||||
from . import respond
|
from .. import respond
|
||||||
from . import common
|
from .. import common
|
||||||
|
|
||||||
# Add other HTTP error codes
|
# Add other HTTP error codes
|
||||||
codes = [404, 500]
|
codes = [404, 500]
|
|
@ -3,7 +3,7 @@
|
||||||
from fastapi import Request, Response
|
from fastapi import Request, Response
|
||||||
|
|
||||||
from . import paths
|
from . import paths
|
||||||
from . import respond
|
from .. import respond
|
||||||
|
|
||||||
|
|
||||||
class MainPaths(paths.Paths):
|
class MainPaths(paths.Paths):
|
Loading…
Add table
Reference in a new issue