app.views_privateο
Attributesο
Functionsο
|
The view function for the webhook endpoint. |
|
The view function for the billing pages' routing. |
|
The view function for the account pages routing. |
|
The view function for the admin privilaged pages' routing. |
|
The view function for the private pages routing. |
Module Contentsο
- app.views_private.webhook(path)[source]ο
The view function for the webhook endpoint.
- Parameters:
path (str) β The part of the requested endpoint after /webhook/.
- Returns:
A JSON response indicating success or failure.
- Return type:
Response
Webhook endpoints for external services to give us updates. Currently, this endpoint is used to receive webhook events from Stripe.
- app.views_private.billing(path)[source]ο
The view function for the billing pagesβ routing.
- Parameters:
path (str) β The part of the requested endpoint after /billing/.
- Returns:
The rendered template for the requested billing page.
- Return type:
Response
- app.views_private.account(path)[source]ο
The view function for the account pages routing.
- Parameters:
path (str) β The part of the requested endpoint after /account/.
- Returns:
The rendered template for the requested account page.
- Return type:
Response
- app.views_private.admin(path)[source]ο
The view function for the admin privilaged pagesβ routing.
path:path is used to catch all paths, including those with multiple slashes (/)
- Parameters:
path (str) β The part of the requested endpoint after /admin/.
- Returns:
The rendered template for the requested admin page.
- Return type:
Response
- app.views_private.private_index(path)[source]ο
The view function for the private pages routing.
This is the fallback view function for all private pages at /app/.
- Parameters:
path (str) β The part of the requested endpoint after /app/.
- Returns:
The rendered template for the requested private page.
- Return type:
Response