aboutsummaryrefslogtreecommitdiffstats
path: root/routers/private/internal.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-05-10 15:57:45 +0800
committerGitHub <noreply@github.com>2021-05-10 15:57:45 +0800
commite5723d6556d632df08132472066f1bb167753299 (patch)
treeb7254fa85f8348af7375755bd454f59583b1bd25 /routers/private/internal.go
parent1e6fa57acbe3c05cb996b789e8c2d381c953826f (diff)
downloadgitea-e5723d6556d632df08132472066f1bb167753299.tar.gz
gitea-e5723d6556d632df08132472066f1bb167753299.zip
Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790)
* Move restore repo to internal router and invoke from command to avoid open the same db file or queues files * Follow @zeripath's review * set no timeout for resotre repo private request * make restore repo cancelable
Diffstat (limited to 'routers/private/internal.go')
-rw-r--r--routers/private/internal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/private/internal.go b/routers/private/internal.go
index e541591a38..15a393c530 100644
--- a/routers/private/internal.go
+++ b/routers/private/internal.go
@@ -69,6 +69,7 @@ func Routes() *web.Route {
r.Post("/manager/add-logger", bind(private.LoggerOptions{}), AddLogger)
r.Post("/manager/remove-logger/{group}/{name}", RemoveLogger)
r.Post("/mail/send", SendEmail)
+ r.Post("/restore_repo", RestoreRepo)
return r
}