mirror of
https://github.com/ivabus/urouter
synced 2024-11-21 16:05:12 +03:00
0.2.1: bump smurf to 0.3.0
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
fc1ebcbe60
commit
4b22cdc7d1
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "urouter"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
repository = "https://github.com/ivabus/urouter"
|
||||
|
@ -12,4 +12,4 @@ rocket = "0.5.0-rc.3"
|
|||
serde = { version = "1.0.163", features = ["derive"] }
|
||||
serde_json = "1.0.96"
|
||||
url-escape = "0.1.1"
|
||||
smurf = "0.2.0"
|
||||
smurf = "0.3.0"
|
|
@ -73,9 +73,9 @@ impl<'r> FromRequest<'r> for UserAgent {
|
|||
fn get_return(alias: &Alias) -> Response {
|
||||
return match alias.is_url {
|
||||
Some(true) => Response::Redirect(Redirect::to(alias.alias.clone())),
|
||||
_ => Response::Text(RawText(
|
||||
smurf::io::read_file_to_str(&PathBuf::from(&alias.alias)).unwrap(),
|
||||
)),
|
||||
_ => {
|
||||
Response::Text(RawText(smurf::io::read_file_str(&PathBuf::from(&alias.alias)).unwrap()))
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue