Commit 9f55b7e1 authored by James Laver's avatar James Laver

fix for FacetsTable - remove old code

parent d7659cda
...@@ -323,14 +323,6 @@ instance encodeJsonDDQuery :: EncodeJson DeleteDocumentQuery where ...@@ -323,14 +323,6 @@ instance encodeJsonDDQuery :: EncodeJson DeleteDocumentQuery where
encodeJson (DeleteDocumentQuery post) = encodeJson (DeleteDocumentQuery post) =
"documents" := post.documents ~> jsonEmptyObject "documents" := post.documents ~> jsonEmptyObject
putFavorites :: Ends -> Int -> FavoriteQuery -> Aff (Array Int)
putFavorites ends nodeId = put to
where to = url endst (NodeAPI Node (Just nodeId)) <> "/favorites"
deleteFavorites :: Int -> FavoriteQuery -> Aff (Array Int)
deleteFavorites nodeId = deleteWithBody to
where to = url ends (NodeAPI Node (Just nodeId)) <> "/favorites"
deleteDocuments :: Ends -> Int -> DeleteDocumentQuery -> Aff (Array Int) deleteDocuments :: Ends -> Int -> DeleteDocumentQuery -> Aff (Array Int)
deleteDocuments ends nodeId = deleteWithBody to deleteDocuments ends nodeId = deleteWithBody to
where to = url ends (NodeAPI Node (Just nodeId)) <> "/documents" where to = url ends (NodeAPI Node (Just nodeId)) <> "/documents"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment