From 1e32bec1b4a9a93abfeb407624fa7a790c40f9af Mon Sep 17 00:00:00 2001 From: MikeWang Date: Tue, 9 Apr 2019 07:40:28 +0800 Subject: [PATCH] add missing Delete function --- util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.go b/util.go index 773e0b1..85adb5d 100644 --- a/util.go +++ b/util.go @@ -75,6 +75,9 @@ func (c *Conf) Get(path string, handler HandlerFunc, m ...MiddlewareFunc) *Conf func (c *Conf) Post(path string, handler HandlerFunc, m ...MiddlewareFunc) *Conf { return c.AddHandler(POST, path, handler, m...) +} + +func (c *Conf) Delete(path string, handler HandlerFunc, m ...MiddlewareFunc) *Conf { return c.AddHandler(DELETE, path, handler, m...) }