feat: billing guest access

This commit is contained in:
2024-08-08 07:49:53 +03:00
parent a7c4fabed0
commit 97f835ffde
30 changed files with 682 additions and 140 deletions

View File

@@ -6,13 +6,13 @@ from sqlalchemy.ext.asyncio import AsyncSession
from backend.session import get_session
from models import User
from schemas.client import *
from services.auth import get_current_user
from services.auth import get_current_user, authorized_user
from services.client import ClientService
client_router = APIRouter(
prefix="/client",
tags=['client'],
dependencies=[Depends(get_current_user)]
dependencies=[Depends(authorized_user)]
)