rctab.main

The entrypoint of the FastAPI application.

Functions

custom_404_handler(request, __)

Provide a more useful 404 page.

get_documentation([_])

Serves swagger API docs.

get_open_api_endpoint([_])

Serves OpenAPI endpoints.

get_redocumentation([_])

Serves Redoc API docs.

insufficient_privileges_exception_handler(...)

Handle insufficient privileges to view a page.

lifespan(_)

Handle setup and teardown.

request_admin_access([conn, token])

Request administrator access.

set_secure_headers(request, call_next)

Set security headers for HTTP response.

show_version([_])

Get the app version.

unicorn_exception_handler(_, exc)

Handle unique constraint violations.