From 28f9b313bab420be8f42e546015312904311adba Mon Sep 17 00:00:00 2001 From: JakobDev Date: Fri, 22 Sep 2023 01:43:29 +0200 Subject: Updates to the API for archived repos (#27149) --- modules/context/api.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/context/api.go b/modules/context/api.go index 044ec51b56..a46af6ed78 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -101,6 +101,12 @@ type APIRedirect struct{} // swagger:response string type APIString string +// APIRepoArchivedError is an error that is raised when an archived repo should be modified +// swagger:response repoArchivedError +type APIRepoArchivedError struct { + APIError +} + // ServerError responds with error message, status is 500 func (ctx *APIContext) ServerError(title string, err error) { ctx.Error(http.StatusInternalServerError, title, err) -- cgit v1.2.3