From 0ec2a650675366204fd5e29c92b25b658d2f8e2a Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 10 Nov 2014 00:24:47 -0800 Subject: [PATCH] added docs to README --- README.md | 6 ++++++ server/router/router.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d7b785653..8b90ae4be 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ [![GoDoc](https://godoc.org/github.com/drone/drone?status.png)](https://godoc.org/github.com/drone/drone) [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/drone/drone?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +## Documentation + +* [Installation](http://readme.drone.io/setup/install/ubuntu/) +* [User Guide](http://readme.drone.io/usage/overview/) +* [API Reference](http://readme.drone.io/api/overview/) + ## System Requirements * Docker diff --git a/server/router/router.go b/server/router/router.go index aa76f2a4a..de61d4f87 100644 --- a/server/router/router.go +++ b/server/router/router.go @@ -40,7 +40,7 @@ func New() *web.Mux { repos.Use(middleware.RequireRepoAdmin) repos.Get(regexp.MustCompile(`^\/api\/repos\/(?P(.*))\/(?P(.*))\/(?P(.*))\/branches\/(?P(.*))\/commits\/(?P(.*))\/console$`), handler.GetOutput) repos.Get(regexp.MustCompile(`^\/api\/repos\/(?P(.*))\/(?P(.*))\/(?P(.*))\/branches\/(?P(.*))\/commits\/(?P(.*))$`), handler.GetCommit) - repos.Post(regexp.MustCompile(`^\/api\/repos\/(?P(.*))\/(?P(.*))\/(?P(.*))\/branches\/(?P(.*))\/commits\/(?P(.*))\/console$`), handler.PostCommit) + repos.Post(regexp.MustCompile(`^\/api\/repos\/(?P(.*))\/(?P(.*))\/(?P(.*))\/branches\/(?P(.*))\/commits\/(?P(.*))$`), handler.PostCommit) repos.Get("/api/repos/:host/:owner/:name/commits", handler.GetCommitList) repos.Get("/api/repos/:host/:owner/:name", handler.GetRepo) repos.Put("/api/repos/:host/:owner/:name", handler.PutRepo)