//! # Controllers: the code that answers requests
//!
//! A controller groups the handlers for one feature. A handler is a plain
//! `async fn`: its arguments say what it needs from the request (the body,
//! a URL parameter, the logged-in user, the database...) and it returns the
//! response. Handlers are connected to URLs in `src/routes/`
//! (`web.rs` for pages, `api.rs` for the JSON API).
//!
//! - Create a new one with `chy make:controller CommentController`. It is
//! added to this file for you; then add its routes in `src/routes/api.rs`
//! (or `src/routes/web.rs` for pages).
//! - Conventional names: `index` (list), `store` (create), `show` (one),
//! `update`, `destroy` (delete).
//! - Keep handlers short: input types go in `requests/`, table structs in `models/`.