1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use in_space_routes as routes;
pub use in_space_core::Middleware;
pub use routes::body;
pub use routes::filter;
pub use routes::get;
pub use routes::middleware;
pub use routes::post;
pub use routes::put;
pub use routes::query;
pub use routes::routes;
pub use warp::reply::Json;
use serde::Serialize;
pub mod cors {
pub type Options = warp::cors::Cors;
pub type Builder = warp::cors::Builder;
pub fn builder() -> Builder {
warp::cors()
}
}
pub struct Response;
impl Response {
pub fn json<T: Serialize>(t: &T) -> Json {
warp::reply::json(t)
}
}
#[cfg(test)]
mod tests {}