mirror of
https://github.com/Start9Labs/registry.git
synced 2026-04-04 21:59:43 +00:00
lift version
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 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