make the web server handle the null path
This commit is contained in:
parent
8ba2163ccd
commit
3b7362861d
@ -50,7 +50,9 @@ web opts args l =
|
|||||||
where
|
where
|
||||||
handlers :: ServerPartT IO Response
|
handlers :: ServerPartT IO Response
|
||||||
handlers = msum
|
handlers = msum
|
||||||
[dir "print" $ withDataFn (look "a") $ \a -> templatise $ printreport [a]
|
[methodSP GET $ withDataFn (look "a") $ \a -> templatise $ balancereport [a]
|
||||||
|
,methodSP GET $ templatise $ balancereport []
|
||||||
|
,dir "print" $ withDataFn (look "a") $ \a -> templatise $ printreport [a]
|
||||||
,dir "print" $ templatise $ printreport []
|
,dir "print" $ templatise $ printreport []
|
||||||
,dir "register" $ withDataFn (look "a") $ \a -> templatise $ registerreport [a]
|
,dir "register" $ withDataFn (look "a") $ \a -> templatise $ registerreport [a]
|
||||||
,dir "register" $ templatise $ registerreport []
|
,dir "register" $ templatise $ registerreport []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user