Update 'src/main.rs'
Add more output for debugging purposes.
This commit is contained in:
parent
d17087182c
commit
d467bb7c64
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,8 @@ async fn echo(req: Request<Body>) -> Result<Response<Body>> {
|
||||||
let domain = split_path[1];
|
let domain = split_path[1];
|
||||||
let token = split_path[2];
|
let token = split_path[2];
|
||||||
|
|
||||||
|
println!("Got the parameters domain: {} and token: {}", domain, token);
|
||||||
|
|
||||||
response = generate_feed(response, domain, token).await?;
|
response = generate_feed(response, domain, token).await?;
|
||||||
} else {
|
} else {
|
||||||
*response.body_mut() = Body::from("<h1>You need to go to `/domain/token!`</h1>");
|
*response.body_mut() = Body::from("<h1>You need to go to `/domain/token!`</h1>");
|
||||||
|
|
Loading…
Reference in a new issue