* fixed 404 page
This commit is contained in:
parent
b7e34eba74
commit
515660fa7d
5 changed files with 27 additions and 3 deletions
|
|
@ -74,6 +74,7 @@ tazBlog acid =
|
|||
, dir "admin" $ ok $ toResponse $ adminLogin
|
||||
, dir "dologin" $ processLogin acid
|
||||
, serveDirectory DisableBrowsing [] "../res"
|
||||
, ok $ toResponse $ showError NotFound DE
|
||||
]
|
||||
|
||||
blogHandler :: AcidState Blog -> BlogLang -> ServerPart Response
|
||||
|
|
@ -84,6 +85,7 @@ blogHandler acid lang =
|
|||
\(eId :: Integer) -> addComment acid lang $ EntryId eId
|
||||
, do nullDir
|
||||
showIndex acid lang
|
||||
, ok $ toResponse $ showError NotFound lang
|
||||
]
|
||||
|
||||
formatOldLink :: Int -> Int -> String -> ServerPart Response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue