users and status working
This commit is contained in:
20
app/dependencies/__init__.py
Normal file
20
app/dependencies/__init__.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import Depends
|
||||
|
||||
import alchemy
|
||||
from .engine import engine
|
||||
|
||||
from .session import get_session
|
||||
|
||||
from routers.user import get_current_active_user
|
||||
|
||||
|
||||
ACTIVE_USER = Annotated[alchemy.User, Depends(get_current_active_user)]
|
||||
|
||||
__all__ = [
|
||||
'engine',
|
||||
'ACTIVE_USER',
|
||||
'get_session',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user