exam-manager.app.main#

Exam manager main file.

Attributes#

Functions#

lifespan(app)

Define application lifespan.

custom_http_exception_handler(request, exc)

Get http exception handler.

validation_exception_handler(request, exc)

Get request validation exception handler.

readiness(→ dict)

Get status / health endpoint.

Module Contents#

exam-manager.app.main.ORIGINS = ['http://localhost:8080', 'https://localhost:8443', 'https://localhost:3000']#
async exam-manager.app.main.lifespan(app: fastapi.FastAPI)#

Define application lifespan.

exam-manager.app.main.app#
async exam-manager.app.main.custom_http_exception_handler(request, exc)#

Get http exception handler.

async exam-manager.app.main.validation_exception_handler(request, exc)#

Get request validation exception handler.

async exam-manager.app.main.readiness() dict#

Get status / health endpoint.