//! REST API route definitions (PostgREST-compatible)
//!
//! Maps the `/rest/v1/` URL namespace to the appropriate handler functions.
use ;
use crate;
/// Create PostgREST-compatible REST routes.
///
/// These are designed to be nested at `/rest/v1` in the top-level router.
///
/// # Endpoints
///
/// | Method | Path | Description |
/// |--------|-----------------|----------------------------|
/// | GET | `/:table` | Select rows from table |
/// | POST | `/:table` | Insert rows into table |
/// | PATCH | `/:table` | Update rows in table |
/// | DELETE | `/:table` | Delete rows from table |
/// | POST | `/rpc/:function`| Execute stored function |