Skip to content

Commit

Permalink
Enable session route
Browse files Browse the repository at this point in the history
  • Loading branch information
devdupont committed Jul 12, 2024
1 parent 636db83 commit 14adbec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions account/routes/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

from fastapi import APIRouter
from account.config import CONFIG
from . import token, user # , stripe
from . import stripe, token, user

router = APIRouter(prefix=f"/{CONFIG.admin_root}", include_in_schema=False)

# router.include_router(stripe.router)
router.include_router(stripe.router)
router.include_router(token.router)
router.include_router(user.router)
2 changes: 1 addition & 1 deletion account/routes/admin/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
router = APIRouter(prefix="/stripe")


@router.get("/portal", dependencies=[Depends(admin_user)])
@router.post("/portal", dependencies=[Depends(admin_user)])
async def get_billing_url(user: User = Depends(embedded_user)) -> JustUrl:
"""Return the Stripe account portal for another user."""
if not (user.stripe and user.stripe.customer_id):
Expand Down

0 comments on commit 14adbec

Please sign in to comment.