aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@sapk.fr>2016-01-15 19:24:03 +0100
committerAntoine GIRARD <sapk@sapk.fr>2016-01-28 20:51:19 +0100
commitc11c3b6c1125c8de1f86ea4d41eb88728d8e0b48 (patch)
tree051061e60ff43c1e740c9819a16e5ace15a38e1a /routers/api/v1/api.go
parent566163ab8257ba2b828985c2cc00f705341ba73f (diff)
downloadgitea-c11c3b6c1125c8de1f86ea4d41eb88728d8e0b48.tar.gz
gitea-c11c3b6c1125c8de1f86ea4d41eb88728d8e0b48.zip
Near ready
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 6fe11a07e8..0152eec29a 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -183,7 +183,10 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Patch("/hooks/:id:int", bind(api.EditHookOption{}), repo.EditHook)
m.Get("/raw/*", middleware.RepoRef(), repo.GetRawFile)
m.Get("/archive/*", repo.GetArchive)
-
+ m.Group("/branches", func() {
+ m.Get("",repo.ListBranches)
+ m.Get("/:id",repo.GetBranch)
+ })
m.Group("/keys", func() {
m.Combo("").Get(repo.ListDeployKeys).
Post(bind(api.CreateKeyOption{}), repo.CreateDeployKey)