chyabrung-cli 0.2.4

The `chy` command line tool for Chyabrung: scaffolding, dev server with hot reload, builds, generators, migrations and one-command deploys
//! # Controllers: the code that answers requests
//!
//! A controller groups the handlers for one feature:
//!
//! ```ignore
//! pub struct PostController;
//!
//! #[controller]
//! impl PostController {
//!     /// Every post (this line shows up in the API docs).
//!     async fn index() -> Result<Json<Vec<Post>>> { ... }
//! }
//! ```
//!
//! A handler is an `async fn`: its arguments say what it needs from the
//! request (the body, a URL parameter, the logged-in user...) and it returns
//! the response. Connect it to a URL in `src/routes/api.rs` (or `web.rs`
//! for pages): `route.get("/posts", PostController::index)`.
//!
//! - Create a new one with `chy make:controller CommentController`. It is
//!   added to this file for you.
//! - Standard names: `index` (list), `store` (create), `show` (one),
//!   `update`, `destroy` (delete). With them, `route.resource("/posts", PostController)`
//!   adds all five routes in one line.
//! - Keep handlers short: input types go in `requests/`, table structs in `models/`.

pub mod auth_controller;
pub mod post_controller;
pub mod realtime_controller;
pub mod stats_controller;
pub mod upload_controller;

pub use auth_controller::AuthController;
pub use post_controller::PostController;
pub use realtime_controller::RealtimeController;
pub use stats_controller::StatsController;
pub use upload_controller::UploadController;