mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
slow af but works
This commit is contained in:
@@ -104,7 +104,7 @@ getVersionFromQuery = do
|
|||||||
Nothing -> pure Nothing
|
Nothing -> pure Nothing
|
||||||
Just v -> case readMaybe v of
|
Just v -> case readMaybe v of
|
||||||
Nothing -> sendResponseStatus status400 ("Invalid Version" :: Text)
|
Nothing -> sendResponseStatus status400 ("Invalid Version" :: Text)
|
||||||
Just t -> pure Just t
|
Just t -> pure (Just t)
|
||||||
|
|
||||||
getHashFromQuery :: MonadHandler m => m (Maybe Text)
|
getHashFromQuery :: MonadHandler m => m (Maybe Text)
|
||||||
getHashFromQuery = lookupGetParam "hash"
|
getHashFromQuery = lookupGetParam "hash"
|
||||||
|
|||||||
Reference in New Issue
Block a user