From f304f7c386edce2ffd78401ad1e89bddf4b7e752 Mon Sep 17 00:00:00 2001 From: Luke Frisken Date: Wed, 15 May 2024 11:28:26 +1000 Subject: [PATCH] Fix typo in forecast path We need to add some integration tests! Even better would be some kind of type checked routing. --- src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.rs b/src/index.rs index a290125..11651ce 100644 --- a/src/index.rs +++ b/src/index.rs @@ -53,7 +53,7 @@ pub struct ForecastFileContext { impl From 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 } } }