summaryrefslogtreecommitdiffhomepage
path: root/keysafe.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-20 17:59:14 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-20 17:59:14 -0400
commit7ed6961a0e0ef713c136a9d36f86bc7e31414dc5 (patch)
tree591fd6c5f60276c946962f8af27ec3def5d9b303 /keysafe.hs
parent3633c44893bfbd50f25b84ac353012975388332c (diff)
downloadkeysafe-7ed6961a0e0ef713c136a9d36f86bc7e31414dc5.tar.gz
http client, and --server
Diffstat (limited to 'keysafe.hs')
-rw-r--r--keysafe.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/keysafe.hs b/keysafe.hs
index 2af2ad2..2b40842 100644
--- a/keysafe.hs
+++ b/keysafe.hs
@@ -18,6 +18,7 @@ import Cost
import SecretKey
import Share
import Storage
+import HTTP.Server
import qualified Gpg
import Data.Maybe
import Data.Time.Clock
@@ -62,6 +63,8 @@ dispatch cmdline ui storagelocations tunables possibletunables = do
restore storagelocations ui possibletunables Gpg.anyKey
go CmdLine.UploadQueued _ =
uploadQueued
+ go CmdLine.Server _ =
+ runServer 80
go CmdLine.Benchmark _ =
benchmarkTunables tunables