blob: 199d6dbdc086c55f726ceac1983694cedf2cd5b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
pub mod handlers {
use warp::{Reply, Rejection};
use warp::http::Response;
pub async fn list() -> Result<impl Reply, Rejection> {
Ok("test")
}
pub async fn post(name: String) -> Result<impl Reply, Rejection> {
Ok("Post test")
}
}
|