Module iqps_backend::routing

source ยท
Expand description

Router, handlers, middleware, state, and response utils.

Re-exportsยง

Modulesยง

  • handlers ๐Ÿ”’
    All endpoint handlers and their response types.
  • middleware ๐Ÿ”’
    Middleware for the axum router

Structsยง

  • AppError ๐Ÿ”’
    A struct representing the error returned by a handler. This is automatically serialized into JSON and sent as an internal server error (500) backend response. The ? operator can be used anywhere inside a handler to do so.
  • BackendResponse ๐Ÿ”’
    Standard backend response format (serialized as JSON)
  • RouterState ๐Ÿ”’
    The state of the axum router, containing the environment variables and the database connection.

Enumsยง

  • Status ๐Ÿ”’
    The status of a server response

Functionsยง