This commit is contained in:
@@ -11,7 +11,7 @@ pub struct Config {
|
|||||||
|
|
||||||
pub async fn run(config: Config, token: CancellationToken) -> Result<(), io::Error> {
|
pub async fn run(config: Config, token: CancellationToken) -> Result<(), io::Error> {
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/", routing::get(|| async { "Hello world!" }))
|
.route("/", routing::get(|| async { "Hello kube world!" }))
|
||||||
.layer((
|
.layer((
|
||||||
TraceLayer::new_for_http(),
|
TraceLayer::new_for_http(),
|
||||||
TimeoutLayer::new(Duration::from_secs(10)),
|
TimeoutLayer::new(Duration::from_secs(10)),
|
||||||
|
|||||||
Reference in New Issue
Block a user