/
syncora
/
auth_service
Обзор
Документация
Войти
/
syncora
/
auth_service
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
app/api/dependencies.py
16 строк
513 B
ikarg
add auth and register
24 сен 2025, 19:37
24 сен 2025, 19:37
86860af
Код
Авторство
О чём код?
from typing import Annotated from fastapi import Depends from app.infrastructure.orm.repositories.user_uow import UserUOW from app.application.interfaces.repositories.user_uow import IUserUOW from app.core.dependencies.auth_verification import AuthVerification def get_auth_verification(): return AuthVerification() def get_user_uow(): return UserUOW() auth_verification_depend = Annotated[AuthVerification, Depends(get_auth_verification)] user_uow_depend = Annotated[IUserUOW, Depends(get_user_uow)]