added docs to README
This commit is contained in:
parent
2c75f225d9
commit
0ec2a65067
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -40,7 +40,7 @@ func New() *web.Mux {
|
|||
repos.Use(middleware.RequireRepoAdmin)
|
||||
repos.Get(regexp.MustCompile(`^\/api\/repos\/(?P<host>(.*))\/(?P<owner>(.*))\/(?P<name>(.*))\/branches\/(?P<branch>(.*))\/commits\/(?P<commit>(.*))\/console$`), handler.GetOutput)
|
||||
repos.Get(regexp.MustCompile(`^\/api\/repos\/(?P<host>(.*))\/(?P<owner>(.*))\/(?P<name>(.*))\/branches\/(?P<branch>(.*))\/commits\/(?P<commit>(.*))$`), handler.GetCommit)
|
||||
repos.Post(regexp.MustCompile(`^\/api\/repos\/(?P<host>(.*))\/(?P<owner>(.*))\/(?P<name>(.*))\/branches\/(?P<branch>(.*))\/commits\/(?P<commit>(.*))\/console$`), handler.PostCommit)
|
||||
repos.Post(regexp.MustCompile(`^\/api\/repos\/(?P<host>(.*))\/(?P<owner>(.*))\/(?P<name>(.*))\/branches\/(?P<branch>(.*))\/commits\/(?P<commit>(.*))$`), 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)
|
||||
|
|
Loading…
Reference in a new issue