aurelin 0.4.2

Aurelin is a Rust translation of Laravel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use aurelin_framework::{
    axum::{Router, routing::get},
    events::EventDispatcher,
    health,
};

pub fn routes() -> Router {
    Router::new()
        .route("/", get(welcome))
        .route("/up", health::route(EventDispatcher::builder().build()))
}

async fn welcome() -> &'static str {
    "Welcome to Aurelin"
}