summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-02 09:54:35 -0400
committerUnknwon <u@gogs.io>2015-09-02 09:54:35 -0400
commitd951824ff9c52919e2821d0e9be2504550a994fc (patch)
tree5fc0d30d17c8999c2e993088a4b6b2df51ac217b /cmd
parent953bb06857f59f5c6987f68a08a94cf5a885b456 (diff)
downloadgitea-d951824ff9c52919e2821d0e9be2504550a994fc.tar.gz
gitea-d951824ff9c52919e2821d0e9be2504550a994fc.zip
able to download archive by API
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index d3d339de43..641e331b4f 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -243,6 +243,7 @@ func runWeb(ctx *cli.Context) {
Post(bind(api.CreateHookOption{}), v1.CreateRepoHook)
m.Patch("/hooks/:id:int", bind(api.EditHookOption{}), v1.EditRepoHook)
m.Get("/raw/*", middleware.RepoRef(), v1.GetRepoRawFile)
+ m.Get("/archive/*", v1.GetRepoArchive)
}, middleware.ApiRepoAssignment(), middleware.ApiReqToken())
})