From e1b3a250085195122c3b41b998504692f47fcb63 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 2 Dec 2018 12:55:05 -0500 Subject: api/repo: support edit repository issue tracker (gogs/go-gogs-client#94) --- pkg/context/api.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/context/api.go') diff --git a/pkg/context/api.go b/pkg/context/api.go index 7df5b23a..439fb5df 100644 --- a/pkg/context/api.go +++ b/pkg/context/api.go @@ -44,6 +44,11 @@ func (c *APIContext) Error(status int, title string, obj interface{}) { }) } +// NoContent renders the 204 response. +func (c *APIContext) NoContent() { + c.Status(http.StatusNoContent) +} + // NotFound renders the 404 response. func (c *APIContext) NotFound() { c.Status(http.StatusNotFound) -- cgit v1.2.3