From a0f9197b4573aa9d4d868637ed00e710a435797b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 16 Nov 2014 21:32:26 -0500 Subject: GetFile api --- cmd/web.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/web.go') diff --git a/cmd/web.go b/cmd/web.go index e3d209a0ab..a99ee4a1f6 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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()) }) -- cgit v1.2.3