Skip to content

Commit 6030087

Browse files
committed
Presentation -> Inbound
1 parent f58e48a commit 6030087

33 files changed

Lines changed: 42 additions & 42 deletions

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ type = "layers"
9696
containers = ["app"]
9797
layers = [
9898
"(main)",
99-
"presentation",
99+
"inbound",
100100
"outbound",
101101
"core",
102102
]
File renamed without changes.

src/app/presentation/http/account/change_password.py renamed to src/app/inbound/http/account/change_password.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
from app.core.common.authorization.exceptions import AuthorizationError
1111
from app.core.common.exceptions import BusinessTypeError
12+
from app.inbound.http.errors.callbacks import log_info
13+
from app.inbound.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1214
from app.outbound.adapters.exceptions import PasswordHasherBusyError
1315
from app.outbound.auth_ctx.exceptions import AuthenticationChangeError, AuthenticationError, ReAuthenticationError
1416
from app.outbound.auth_ctx.handlers.change_password import ChangePassword, ChangePasswordRequest
1517
from app.outbound.exceptions import StorageError
16-
from app.presentation.http.errors.callbacks import log_info
17-
from app.presentation.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1818

1919

2020
class ChangePasswordRequestSchema(BaseModel):

src/app/presentation/http/account/log_in.py renamed to src/app/inbound/http/account/log_in.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
from app.core.common.authorization.exceptions import AuthorizationError
99
from app.core.common.exceptions import BusinessTypeError
10+
from app.inbound.http.errors.callbacks import log_info
11+
from app.inbound.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1012
from app.outbound.adapters.exceptions import PasswordHasherBusyError
1113
from app.outbound.auth_ctx.exceptions import AlreadyAuthenticatedError, AuthenticationError
1214
from app.outbound.auth_ctx.handlers.log_in import LogIn, LogInRequest
1315
from app.outbound.exceptions import StorageError
14-
from app.presentation.http.errors.callbacks import log_info
15-
from app.presentation.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1616

1717

1818
def make_log_in_router() -> APIRouter:

src/app/presentation/http/account/log_out.py renamed to src/app/inbound/http/account/log_out.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
from fastapi_error_map import ErrorAwareRouter
88

99
from app.core.common.authorization.exceptions import AuthorizationError
10+
from app.inbound.http.errors.callbacks import log_info
11+
from app.inbound.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1012
from app.outbound.auth_ctx.exceptions import AuthenticationError
1113
from app.outbound.auth_ctx.handlers.log_out import LogOut
1214
from app.outbound.exceptions import StorageError
13-
from app.presentation.http.errors.callbacks import log_info
14-
from app.presentation.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1515

1616

1717
def make_log_out_router(*, cookie_name: str) -> APIRouter:

src/app/presentation/http/account/router.py renamed to src/app/inbound/http/account/router.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from fastapi import APIRouter
22

3-
from app.presentation.http.account.change_password import make_change_password_router
4-
from app.presentation.http.account.log_in import make_log_in_router
5-
from app.presentation.http.account.log_out import make_log_out_router
6-
from app.presentation.http.account.sign_up import make_sign_up_router
3+
from app.inbound.http.account.change_password import make_change_password_router
4+
from app.inbound.http.account.log_in import make_log_in_router
5+
from app.inbound.http.account.log_out import make_log_out_router
6+
from app.inbound.http.account.sign_up import make_sign_up_router
77

88

99
def make_account_router(*, cookie_name: str) -> APIRouter:

src/app/presentation/http/account/sign_up.py renamed to src/app/inbound/http/account/sign_up.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
from app.core.commands.exceptions import UsernameAlreadyExistsError
99
from app.core.common.authorization.exceptions import AuthorizationError
1010
from app.core.common.exceptions import BusinessTypeError
11+
from app.inbound.http.errors.callbacks import log_info
12+
from app.inbound.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1113
from app.outbound.adapters.exceptions import PasswordHasherBusyError
1214
from app.outbound.auth_ctx.exceptions import AlreadyAuthenticatedError
1315
from app.outbound.auth_ctx.handlers.sign_up import SignUp, SignUpRequest
1416
from app.outbound.exceptions import StorageError
15-
from app.presentation.http.errors.callbacks import log_info
16-
from app.presentation.http.errors.rules import HTTP_503_SERVICE_UNAVAILABLE_RULE
1717

1818

1919
def make_sign_up_router() -> APIRouter:

src/app/presentation/http/api_v1_router.py renamed to src/app/inbound/http/api_v1_router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from fastapi import APIRouter
22

3-
from app.presentation.http.account.router import make_account_router
4-
from app.presentation.http.users.router import make_users_router
3+
from app.inbound.http.account.router import make_account_router
4+
from app.inbound.http.users.router import make_users_router
55

66

77
def make_v1_router(*, cookie_name: str) -> APIRouter:

0 commit comments

Comments
 (0)