Skip to content

Commit

Permalink
Fix typo in forecast path
Browse files Browse the repository at this point in the history
We need to add some integration tests! Even better would be some kind of
type checked routing.
  • Loading branch information
kellpossible committed May 15, 2024
1 parent dc0d091 commit f304f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct ForecastFileContext {

impl From<ForecastFile> for ForecastFileContext {
fn from(value: ForecastFile) -> Self {
let path = format!("/forecast/{}", urlencoding::encode(&value.file.name));
let path = format!("/forecasts/{}", urlencoding::encode(&value.file.name));
Self { path }
}
}
Expand Down

0 comments on commit f304f7c

Please sign in to comment.