chyabrung-cli 0.2.0

The `chy` command line tool for Chyabrung: scaffolding, dev server with hot reload, builds, generators, migrations and one-command deploys
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # 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.rs`.
//!
//! - Create a new one with `chy make:controller CommentController`. It is
//!   added to this file for you; then add its routes in `src/routes.rs`.
//! - Conventional names: `index` (list), `store` (create), `show` (one),
//!   `update`, `destroy` (delete).
//! - 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;