mirror of
https://github.com/JonasunderscoreJones/jonas_jones-api.git
synced 2025-10-23 09:09:18 +02:00
some updates
This commit is contained in:
parent
b852500513
commit
f93e034373
12 changed files with 265 additions and 20 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue