slave 0.2.0

Laravel-inspired CLI for Rust web apps: scaffold Axum projects with built-in auth, users, roles and Turso migrations
1
2
3
4
5
6
7
8
9
10
11
//! `{{ name }}`: HTTP handlers for the `{{ module }}` domain.

use axum::extract::Path;

pub async fn index() -> &'static str {
    "{{ name }}@index"
}

pub async fn show(Path(id): Path<u64>) -> String {
    format!("{{ name }}@show: {id}")
}