add new 404 handler setting
commitd7ffe3a643e90211021be382f9c2aecfc0e40508
authorJason Hickner <jhickner@gmail.com>
dateWed 18 Nov 2015, 14:40 (11 years ago)
parent6309fb1
wai-app-static/WaiAppStatic/Types.hs+3
@@ -144,4 +144,7 @@ data StaticSettings = StaticSettings
144144
145145 -- | Force a trailing slash at the end of directories
146146 , ssAddTrailingSlash :: Bool
147+
148+ -- | Optional `W.Application` to be used in case of 404 errors
149+ , ss404Handler :: Maybe W.Application
147150 }