From a425e17b0eda3dd7e961127670a46a3b3b2c3d19 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 16 Dec 2019 17:45:20 +0100 Subject: Add button to delete message Maybe we should add a confirmation step in the future. References: https://todo.sr.ht/~sircmpwn/koushin/36 --- plugins/base/plugin.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/base/plugin.go') diff --git a/plugins/base/plugin.go b/plugins/base/plugin.go index 7eaf00c..1cee571 100644 --- a/plugins/base/plugin.go +++ b/plugins/base/plugin.go @@ -47,5 +47,7 @@ func init() { p.POST("/message/:mbox/:uid/move", handleMove) + p.POST("/message/:mbox/:uid/delete", handleDelete) + koushin.RegisterPlugin(p.Plugin()) } -- cgit v1.2.3-59-g8ed1b