Added a favicon, so important!

Fixes #71
This commit is contained in:
Joe Nelson
2014-10-14 11:13:55 -07:00
parent 605c876bf5
commit 2338d000e1
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -17,6 +17,7 @@ executable dbapi
, HDBC, HDBC-postgresql
, warp, wai >= 3.0.1 && < 3.0.2
, wai-extra, wai-cors
, wai-middleware-static
, HTTP, convertible
, case-insensitive
, http-types, scientific, time
@@ -54,6 +55,7 @@ Test-Suite spec
, HTTP, convertible
, case-insensitive
, wai-extra, wai-cors, containers
, wai-middleware-static
, http-types, scientific, time
, bytestring, aeson, network >= 2.6
, text, optparse-applicative
+5 -1
View File
@@ -13,6 +13,7 @@ import Control.Applicative
import Options.Applicative hiding (columns)
import Network.Wai.Middleware.Gzip (gzip, def)
import Network.Wai.Middleware.Cors (cors)
import Network.Wai.Middleware.Static (staticPolicy, only)
argParser :: Parser AppConfig
argParser = AppConfig
@@ -37,7 +38,10 @@ main = do
Prelude.putStrLn $ "Listening on port " ++ (show $ configPort conf :: String)
conn <- connectPostgreSQL' dburi
run port $ (if configSecure conf then redirectInsecure else id)
. gzip def . cors corsPolicy . clientErrors
. gzip def
. cors corsPolicy
. clientErrors
. staticPolicy (only [("favicon.ico", "static/favicon.ico")])
$ (inTransaction . authenticated (cs $ configAnonRole conf) . withSavepoint)
app conn
where
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB