app.views_privateο
Private views and routes for authenticated users.
This module defines the routes that require authentication, including the user dashboard, billing, account settings, API key management, admin pages, and webhook endpoints.
Attributesο
Functionsο
|
The view function that serves the batch validation result files. |
|
The view function for the webhook endpoint. |
|
The view function for the page for managing API keys. |
|
The view function for the billing pages' routing. |
|
The view function for the account pages routing. |
|
The view function for the admin privileged pages' routing. |
|
The view function for the private pages routing. |
Module Contentsο
- app.views_private.download_results(jobuid)[source]ο
The view function that serves the batch validation result files.
- Parameters:
jobuid (str) β The part of the requested endpoint after /download-results/.
- 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
Note
Webhook endpoints for external services to give us updates. Currently, this endpoint is used to receive webhook events from Stripe.
- app.views_private.api_keys(path)[source]ο
The view function for the page for managing API keys.
- Parameters:
path β The sub-path for API key actions (βcreateβ, βrevokeβ, or βapi-keysβ).
- Returns:
The rendered template or JSON response for the action.
- Return type:
Response
- 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 privileged 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