2022-01-14 17:13:44 +00:00
|
|
|
use crate::cnf;
|
2022-01-13 17:36:41 +00:00
|
|
|
use warp::http::Uri;
|
2020-06-29 15:36:01 +00:00
|
|
|
use warp::Filter;
|
|
|
|
|
2022-12-20 10:30:40 +00:00
|
|
|
#[allow(opaque_hidden_inferred_bound)]
|
2020-06-29 15:36:01 +00:00
|
|
|
pub fn config() -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
|
2022-12-09 16:48:54 +00:00
|
|
|
warp::path::end()
|
|
|
|
.and(warp::get())
|
|
|
|
.map(|| warp::redirect::temporary(Uri::from_static(cnf::APP_ENDPOINT)))
|
2020-06-29 15:36:01 +00:00
|
|
|
}
|