Fix add-handler for multipiece routes (closes #640)
This commit is contained in:
parent
f76b09856b
commit
14fbd3860c
@ -106,7 +106,7 @@ mkHandler name pattern methods = unlines
|
||||
|
||||
getTypes "" = []
|
||||
getTypes ('/':rest) = getTypes rest
|
||||
getTypes ('#':rest) =
|
||||
getTypes (c:rest) | c `elem` "#*" =
|
||||
typ : getTypes rest'
|
||||
where
|
||||
(typ, rest') = break (== '/') rest
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: yesod-bin
|
||||
version: 1.2.5.4
|
||||
version: 1.2.5.5
|
||||
license: MIT
|
||||
license-file: LICENSE
|
||||
author: Michael Snoyman <michael@snoyman.com>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user