Skip to content

Commit c0a3e10

Browse files
committed
refactor(controller): Reorganize API controller structure and update application import path
1 parent fbb9e5a commit c0a3e10

41 files changed

Lines changed: 1003 additions & 295 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
[
2929
"--fix",
3030
"--select=ALL",
31-
"--ignore=RUF100,BLE001,COM812,ISC001,D100,D104,D105,D107,D205,D211,D212,E203,E266,ANN204,ANN401,S104,S602,ERA001,PGH003,PLR0913,TRY400,N803,N815,UP046",
31+
"--ignore=RUF100,BLE001,COM812,ISC001,D100,D104,D105,D107,D205,D211,D212,E203,E266,ANN204,ANN401,S104,S602,ERA001,PGH003,PLR0913,TRY400,N803,N805,N815,UP046",
3232
"--line-length=100",
3333
]
3434
# Run the formatter.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Routes for swagger and redoc."""
22

3-
from app.web.api.docs.views import router
3+
from app.controller.api.docs.views import router
44

55
__all__ = ["router"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Dummy model API."""
2+
3+
from app.controller.api.dummy.views import router
4+
5+
__all__ = ["router"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from fastapi import APIRouter
44
from fastapi.param_functions import Depends
55

6+
from app.controller.api.dummy.schema import DummyModelDTO, DummyModelInputDTO
67
from app.db.dao.dummy_dao import DummyDAO
78
from app.db.models.dummy_model import DummyModel
8-
from app.web.api.dummy.schema import DummyModelDTO, DummyModelInputDTO
99

1010
router = APIRouter()
1111

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Echo API."""
2+
3+
from app.controller.api.echo.views import router
4+
5+
__all__ = ["router"]

0 commit comments

Comments
 (0)