Skip to content

Commit

Permalink
Allow snap-server command-line options
Browse files Browse the repository at this point in the history
  • Loading branch information
kozross committed Jun 1, 2021
1 parent dd9d184 commit 24d08dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
module Main (main) where

import Shields.Api (api)
import Snap.Http.Server (defaultConfig, httpServe)
import Snap.Http.Server
( commandLineConfig,
emptyConfig,
httpServe,
)

main :: IO ()
main = httpServe defaultConfig api
main = commandLineConfig emptyConfig >>= flip httpServe api

0 comments on commit 24d08dd

Please sign in to comment.