mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 21:44:44 +00:00
commit
19b8578200
1 changed files with 4 additions and 3 deletions
|
@ -120,11 +120,12 @@ func main() {
|
||||||
goji.Get("/api/stream/stdout/:id", handler.WsConsole)
|
goji.Get("/api/stream/stdout/:id", handler.WsConsole)
|
||||||
goji.Get("/api/stream/user", handler.WsUser)
|
goji.Get("/api/stream/user", handler.WsUser)
|
||||||
goji.Get("/api/auth/:host", handler.GetLogin)
|
goji.Get("/api/auth/:host", handler.GetLogin)
|
||||||
|
goji.Get("/api/auth/:host", handler.GetLogin)
|
||||||
goji.Get("/api/badge/:host/:owner/:name/status.svg", handler.GetBadge)
|
goji.Get("/api/badge/:host/:owner/:name/status.svg", handler.GetBadge)
|
||||||
goji.Get("/api/badge/:host/:owner/:name/cc.xml", handler.GetCC)
|
goji.Get("/api/badge/:host/:owner/:name/cc.xml", handler.GetCC)
|
||||||
goji.Get("/api/hook/:hook", handler.PostHook)
|
goji.Get("/api/hook/:host", handler.PostHook)
|
||||||
goji.Put("/api/hook/:hook", handler.PostHook)
|
goji.Put("/api/hook/:host", handler.PostHook)
|
||||||
goji.Post("/api/hook/:hook", handler.PostHook)
|
goji.Post("/api/hook/:host", handler.PostHook)
|
||||||
|
|
||||||
repos := web.New()
|
repos := web.New()
|
||||||
repos.Use(middleware.SetRepo)
|
repos.Use(middleware.SetRepo)
|
||||||
|
|
Loading…
Reference in a new issue