GetFile api

This commit is contained in:
Unknwon 2014-11-16 21:32:26 -05:00
parent 340a4595dd
commit a0f9197b45
6 changed files with 73 additions and 26 deletions

View file

@ -183,6 +183,7 @@ func runWeb(*cli.Context) {
m.Group("/:username/:reponame", func() {
m.Combo("/hooks").Get(v1.ListRepoHooks).Post(bind(v1.CreateRepoHookForm{}), v1.CreateRepoHook)
m.Patch("/hooks/:id:int", bind(v1.EditRepoHookForm{}), v1.EditRepoHook)
m.Get("/raw/*", middleware.RepoRef(), v1.GetRepoRawFile)
}, middleware.ApiRepoAssignment(), middleware.ApiReqToken())
})