app.views_private

Attributes

private_bp

Functions

webhook(path)

The view function for the webhook endpoint.

billing(path)

The view function for the billing pages' routing.

account(path)

The view function for the account pages routing.

admin(path)

The view function for the admin privilaged pages' routing.

private_index(path)

The view function for the private pages routing.

Module Contents

app.views_private.private_bp[source]
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