make the web server handle the null path

This commit is contained in:
Simon Michael 2009-04-03 11:19:04 +00:00
parent 8ba2163ccd
commit 3b7362861d

View File

@ -50,7 +50,9 @@ web opts args l =
where
handlers :: ServerPartT IO Response
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 "register" $ withDataFn (look "a") $ \a -> templatise $ registerreport [a]
,dir "register" $ templatise $ registerreport []