module Handler.DeleteItem where import Import postDeleteItemR :: ItemId -> Handler TypedContent postDeleteItemR itemId = do runDB $ delete itemId selectRep $ do provideJson () provideRep (redirect $ InventoryListingR :: Handler Html)