summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-16 21:32:26 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-16 21:32:26 -0500
commita0f9197b4573aa9d4d868637ed00e710a435797b (patch)
tree41efdcb5813cdb1a66bd1fc3bc5c86a371c7815b /cmd
parent340a4595ddc9e08f4c51f40496affb8fd3bb013d (diff)
downloadgitea-a0f9197b4573aa9d4d868637ed00e710a435797b.tar.gz
gitea-a0f9197b4573aa9d4d868637ed00e710a435797b.zip
GetFile 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 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())
})