This repository has been archived on 2025-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
2023-04-03 04:51:09 +03:00

12 lines
429 B
Rust

use axum::{extract::DefaultBodyLimit, routing::get, routing::post, Router};
use crate::routes::{health::health_route, index::index_route, liquid::liquid_rescale_route};
pub fn create_router() -> Router {
Router::new()
.route("/", get(index_route))
.route("/health", get(health_route))
.route("/liquid", post(liquid_rescale_route))
.layer(DefaultBodyLimit::max(1024 * 10_000 /* 10 MiB */))
}