diff options
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 547dbceb4e..46695c79e9 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -276,6 +276,8 @@ func RegisterRoutes(m *macaron.Macaron) { }) m.Get("/raw/*", context.RepoRef(), repo.GetRawFile) m.Get("/archive/*", repo.GetArchive) + m.Combo("/forks").Get(repo.ListForks). + Post(bind(api.CreateForkOption{}), repo.CreateFork) m.Group("/branches", func() { m.Get("", repo.ListBranches) m.Get("/:branchname", repo.GetBranch) |