You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use axum::{ |
|
routing::{get, patch}, |
|
Router, |
|
}; |
|
use std::sync::Arc; |
|
|
|
use crate::data::AppState; |
|
|
|
pub fn get_routes() -> Router<Arc<AppState>> { |
|
Router::new() |
|
.route("/", get(|| async { "admin dashboard" })) |
|
.route("/:name", patch(|| async { "" }).delete(|| async { "" })) |
|
}
|
|
|