fix: use '/' instead of empty path in subscription sub-routers
This commit is contained in:
@@ -69,7 +69,7 @@ def _subscription_to_list_item(sub) -> SubscriptionListItem:
|
||||
)
|
||||
|
||||
|
||||
@router.get('', response_model=SubscriptionsListResponse)
|
||||
@router.get('/', response_model=SubscriptionsListResponse)
|
||||
async def list_subscriptions(
|
||||
user: User = Depends(get_current_cabinet_user),
|
||||
db: AsyncSession = Depends(get_cabinet_db),
|
||||
|
||||
@@ -38,7 +38,7 @@ logger = structlog.get_logger(__name__)
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get('', response_model=SubscriptionStatusResponse)
|
||||
@router.get('/', response_model=SubscriptionStatusResponse)
|
||||
async def get_subscription(
|
||||
user: User = Depends(get_current_cabinet_user),
|
||||
db: AsyncSession = Depends(get_cabinet_db),
|
||||
|
||||
Reference in New Issue
Block a user