aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/repo.go')
-rw-r--r--routers/api/v1/repo/repo.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index 83b1dbd26b..da4034a0d4 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -337,6 +337,15 @@ func Delete(ctx *context.APIContext) {
// MirrorSync adds a mirrored repository to the sync queue
func MirrorSync(ctx *context.APIContext) {
+ // swagger:route POST /repos/{username}/{reponame}/mirror-sync repoMirrorSync
+ //
+ // Produces:
+ // - application/json
+ //
+ // Responses:
+ // 200: empty
+ // 403: forbidden
+
repo := ctx.Repo.Repository
if !ctx.Repo.IsWriter() {