some updates

This commit is contained in:
Jonas_Jones 2023-12-13 04:19:04 +01:00
parent b852500513
commit f93e034373
12 changed files with 265 additions and 20 deletions

View file

@ -1,16 +1,5 @@
// pub fn help() -> warp::reply::Response {
// return warp::reply::Reply::with_header(
// warp::reply::html(""),
// "Content-Type",
// "text/html",
// );
// }
// create a function help() that returns a response with a ststus code of 200 and a body of "help"
use warp::Filter;
pub fn get_builtin_routes() -> impl warp::Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
warp::path("v1")
.and((warp::path("help").map(|| "help"))