diff options
author | Antoine GIRARD <sapk@sapk.fr> | 2016-01-15 19:24:03 +0100 |
---|---|---|
committer | Antoine GIRARD <sapk@sapk.fr> | 2016-01-28 20:51:19 +0100 |
commit | c11c3b6c1125c8de1f86ea4d41eb88728d8e0b48 (patch) | |
tree | 051061e60ff43c1e740c9819a16e5ace15a38e1a /routers/api/v1/api.go | |
parent | 566163ab8257ba2b828985c2cc00f705341ba73f (diff) | |
download | gitea-c11c3b6c1125c8de1f86ea4d41eb88728d8e0b48.tar.gz gitea-c11c3b6c1125c8de1f86ea4d41eb88728d8e0b48.zip |
Near ready
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 5 |
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) |