summaryrefslogtreecommitdiff
path: root/Handler/DeleteRefItem.hs
blob: c4ff519ee8d9870afe95c0a1393c17fa3b7aa1f4 (plain)
1
2
3
4
5
6
7
8
9
10
module Handler.DeleteRefItem where

import Import

postDeleteRefItemR :: ReferenceId -> Handler TypedContent
postDeleteRefItemR referenceId = do
  runDB $ delete referenceId
  selectRep $ do
    provideJson ()
    provideRep (redirect $ ReferenceListingR :: Handler Html)