Use pureconfig instead of typesafe config

This commit is contained in:
Guntis Smaukstelis
2023-05-16 14:54:02 +03:00
parent 236946b20a
commit 590757183a
3 changed files with 21 additions and 19 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ object Server {
.map(Parser.queryData(UserQuery(cities, field, key), _))
.flatMap(result => Ok(result.asJson.pretty))
// http://0.0.0.0:8080/api/fetch/date/20230423
// http://0.0.0.0:8080/api/fetch/date/20230514
case GET -> Root / "fetch" / "date" / ValidDate(date) =>
val result = for {
fetchResultEither <- FetchService.fetchFromDate(date).attempt