Skip to content

Commit

Permalink
add missing Delete function
Browse files Browse the repository at this point in the history
  • Loading branch information
it512 committed Apr 8, 2019
1 parent f34d2aa commit 1e32bec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

Expand Down

0 comments on commit 1e32bec

Please sign in to comment.