fix fuzzy redirects for platform info lookups
This commit is contained in:
parent
5a0ee20398
commit
71c2ceb1c6
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ app AppData{..} request respond = mkAnswer >>= (respond . toResponse)
|
|||
[query, segment] | segment `elem` ["gleis", "track", "tracks", "gleise", "platform", "platforms", "fetch"]
|
||||
-> case queriedRil100 query of
|
||||
None -> pure Notfound
|
||||
Fuzzy url -> pure (Redirect url)
|
||||
Fuzzy url -> pure (Redirect (T.intercalate "/" [url, segment]))
|
||||
Exact ril100 -> do
|
||||
maybeCache <- readTVarIO platformCache <&> M.lookup ril100
|
||||
now <- getCurrentTime
|
||||
|
|
Loading…
Reference in a new issue