소스 검색

Add Snap support for the plaintext test

Doug Beardsley 12 년 전
부모
커밋
702c4aba69
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      snap/bench/src/Main.hs

+ 3 - 2
snap/bench/src/Main.hs

@@ -62,8 +62,9 @@ getConnInfo _ = defaultConnectInfo
 
 site :: Pool Connection -> Snap ()
 site pool = route
-    [ ("json", jsonHandler)
-    , ("db",   dbHandler pool)
+    [ ("json",      jsonHandler)
+    , ("db",        dbHandler pool)
+    , ("plaintext", writeBS "Hello, World!")
     ]
 
 jsonHandler :: Snap ()