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 "" = []
|
||||||
getTypes ('/':rest) = getTypes rest
|
getTypes ('/':rest) = getTypes rest
|
||||||
getTypes ('#':rest) =
|
getTypes (c:rest) | c `elem` "#*" =
|
||||||
typ : getTypes rest'
|
typ : getTypes rest'
|
||||||
where
|
where
|
||||||
(typ, rest') = break (== '/') rest
|
(typ, rest') = break (== '/') rest
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-bin
|
name: yesod-bin
|
||||||
version: 1.2.5.4
|
version: 1.2.5.5
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user