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

Unified Diff: milo/frontend/main.go

Issue 2975023002: [milo] remove linkBase and calculate links directly. (Closed)
Patch Set: common url base Created 3 years, 5 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
« no previous file with comments | « milo/frontend/expectations/swarming.build-build-unicode.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/frontend/main.go
diff --git a/milo/frontend/main.go b/milo/frontend/main.go
index be9cc766ee4d0725a4dc5f0e30801b876a2cf462..5057ffd8041710366a645a926affef43f2cc6399 100644
--- a/milo/frontend/main.go
+++ b/milo/frontend/main.go
@@ -29,7 +29,7 @@ func emptyPrelude(c context.Context, methodName string, req proto.Message) (cont
return c, nil
}
-// Where it all begins!!!
+// Run sets up all the routes and runs the server.
func Run(templatePath string) {
// Register plain ol' http handlers.
r := router.New()
@@ -47,8 +47,8 @@ func Run(templatePath string) {
r.GET("/console/:project", basemw, console.Main)
// Swarming
- r.GET("/swarming/task/:id/steps/*logname", basemw, swarming.LogHandler)
- r.GET("/swarming/task/:id", basemw, swarming.BuildHandler)
+ r.GET(swarming.URLBase+"/:id/steps/*logname", basemw, swarming.LogHandler)
+ r.GET(swarming.URLBase+"/:id", basemw, swarming.BuildHandler)
// Backward-compatible URLs for Swarming:
r.GET("/swarming/prod/:id/steps/*logname", basemw, swarming.LogHandler)
r.GET("/swarming/prod/:id", basemw, swarming.BuildHandler)
« no previous file with comments | « milo/frontend/expectations/swarming.build-build-unicode.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698