about summary refs log tree commit diff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
index c851d9a05203..5bc2ef2ce46d 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -47,6 +47,9 @@ blogHandler lang =
     msum [ path $ \(year :: Int) -> path $ \(month :: Int) -> path $ --single entry
                       \(day :: Int) -> path $ \(id_ :: String) -> showEntry year month day id_
          , path $ \(year :: Int ) -> path $ \(month :: Int) -> showMonth year month lang
+         , do
+            decodeBody tmpPolicy
+            dir "postcomment" $ path $ \(id_ :: String) -> addComment id_
          , do nullDir
               showIndex lang
          ]
@@ -85,6 +88,9 @@ showMonth y m lang = do
     startkey = JSArray [toJSON y, toJSON m]
     endkey = JSArray [toJSON y, toJSON m, JSObject (toJSObject [] )]
 
+addComment :: String -> ServerPart Response
+addComment id_ = undefined
+
 -- http://tazj.in/2012/02/10.155234
 
 -- CouchDB functions