from fastapi import APIRouter, Depends from app.services.auth_service import AuthService from app.dependencies import get_auth_service from app.shared.decorator.response_wrapper import response_wrapper from app.presentation.schemas.auth_schema import JoinRequest, LoginRequest router = APIRouter(prefix="/auth", tags=["auth"]) @router.post("/join") @response_wrapper async def join( request: JoinRequest, auth_service: AuthService = Depends(get_auth_service) ): return auth_service.join(request) @router.post("/login") @response_wrapper async def login( request: LoginRequest, auth_service: AuthService = Depends(get_auth_service) ): return auth_service.login(request)