diff options
Diffstat (limited to 'Handler/DeleteRefItem.hs')
-rw-r--r-- | Handler/DeleteRefItem.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Handler/DeleteRefItem.hs b/Handler/DeleteRefItem.hs new file mode 100644 index 0000000..c4ff519 --- /dev/null +++ b/Handler/DeleteRefItem.hs | |||
@@ -0,0 +1,10 @@ | |||
1 | module Handler.DeleteRefItem where | ||
2 | |||
3 | import Import | ||
4 | |||
5 | postDeleteRefItemR :: ReferenceId -> Handler TypedContent | ||
6 | postDeleteRefItemR referenceId = do | ||
7 | runDB $ delete referenceId | ||
8 | selectRep $ do | ||
9 | provideJson () | ||
10 | provideRep (redirect $ ReferenceListingR :: Handler Html) | ||