able to download archive by API

This commit is contained in:
Unknwon 2015-09-02 09:54:35 -04:00
parent 953bb06857
commit d951824ff9
2 changed files with 14 additions and 0 deletions

View file

@ -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())
})