Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: milo/appengine/frontend/milo.go

Issue 2238883003: Milo: Use luci-cfg for defining projects and console view. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Actually add an endpoint Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: milo/appengine/frontend/milo.go
diff --git a/milo/appengine/frontend/milo.go b/milo/appengine/frontend/milo.go
index 7641c38f8a1955259e7811d38cdcca0cc068e215..5091df9dd4d4eeb5505b50eb3c28625b9b4f4891 100644
--- a/milo/appengine/frontend/milo.go
+++ b/milo/appengine/frontend/milo.go
@@ -25,8 +25,12 @@ func init() {
gaemiddleware.InstallHandlers(r, basemw)
r.GET("/", basemw, settings.Wrap(frontpage{}))
+ // Admin and cron endpoints.
+ r.POST("/admin/update", basemw, settings.UpdateHandler)
+
// Console
- r.GET("/console/:name", basemw, settings.Wrap(console.Console{}))
+ r.GET("/console/:project/:name", basemw, settings.Wrap(console.Console{}))
+ r.GET("/console/:project", basemw, settings.Wrap(console.Console{}))
// Swarming
r.GET("/swarming/task/:id/steps/*logname", basemw, settings.Wrap(swarming.Log{}))

Powered by Google App Engine
This is Rietveld 408576698