Module iqps_backend::routing
source ยท Expand description
Router, handlers
, middleware
, state, and response utils.
Re-exportsยง
pub use handlers::EditReq;
pub use handlers::FileDetails;
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. - Backend
Response ๐Standard backend response format (serialized as JSON) - Router
State ๐The state of the axum router, containing the environment variables and the database connection.
Enumsยง
- Status ๐The status of a server response
Functionsยง
- Returns the Axum router for IQPS