chyabrung-cli 0.2.3

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
//! # Web routes: pages people open in a browser
//!
//! Put HTML pages here: the home page, an about page, a dashboard.
//! JSON endpoints belong in `api.rs`.
//!
//! ```ignore
//! app.get("/", home_controller::index)
//!     .get("/about", home_controller::about)
//! ```

use chyabrung::prelude::*;

/// Add the browser pages to the app.
pub fn register(app: App) -> App {
    app.get("/", welcome) // the welcome page: replace it with your own handler
}