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

Side by Side Diff: milo/appengine/frontend/main.go

Issue 2760873003: Milo: Use luci-config for storing buildbot acls (Closed)
Patch Set: Fix tests Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « milo/appengine/frontend/cron.yaml ('k') | milo/common/config/project.pb.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package frontend 5 package frontend
6 6
7 import ( 7 import (
8 "net/http" 8 "net/http"
9 9
10 "github.com/golang/protobuf/proto" 10 "github.com/golang/protobuf/proto"
(...skipping 21 matching lines...) Expand all
32 // Where it all begins!!! 32 // Where it all begins!!!
33 func init() { 33 func init() {
34 // Register plain ol' http handlers. 34 // Register plain ol' http handlers.
35 r := router.New() 35 r := router.New()
36 gaemiddleware.InstallHandlers(r, gaemiddleware.BaseProd()) 36 gaemiddleware.InstallHandlers(r, gaemiddleware.BaseProd())
37 37
38 basemw := common.Base() 38 basemw := common.Base()
39 r.GET("/", basemw, frontpageHandler) 39 r.GET("/", basemw, frontpageHandler)
40 40
41 // Admin and cron endpoints. 41 // Admin and cron endpoints.
42 » r.GET("/admin/update", basemw.Extend(gaemiddleware.RequireCron), UpdateH andler) 42 » r.GET("/admin/update", basemw.Extend(gaemiddleware.RequireCron), UpdateC onfigHandler)
43 r.GET("/admin/configs", basemw, ConfigsHandler) 43 r.GET("/admin/configs", basemw, ConfigsHandler)
44 44
45 // Console 45 // Console
46 r.GET("/console/:project/:name", basemw, console.ConsoleHandler) 46 r.GET("/console/:project/:name", basemw, console.ConsoleHandler)
47 r.GET("/console/:project", basemw, console.Main) 47 r.GET("/console/:project", basemw, console.Main)
48 48
49 // Swarming 49 // Swarming
50 r.GET("/swarming/task/:id/steps/*logname", basemw, swarming.LogHandler) 50 r.GET("/swarming/task/:id/steps/*logname", basemw, swarming.LogHandler)
51 r.GET("/swarming/task/:id", basemw, swarming.BuildHandler) 51 r.GET("/swarming/task/:id", basemw, swarming.BuildHandler)
52 // Backward-compatible URLs for Swarming: 52 // Backward-compatible URLs for Swarming:
(...skipping 23 matching lines...) Expand all
76 }) 76 })
77 milo.RegisterBuildInfoServer(&api, &milo.DecoratedBuildInfo{ 77 milo.RegisterBuildInfoServer(&api, &milo.DecoratedBuildInfo{
78 Service: &buildinfo.Service{}, 78 Service: &buildinfo.Service{},
79 Prelude: emptyPrelude, 79 Prelude: emptyPrelude,
80 }) 80 })
81 discovery.Enable(&api) 81 discovery.Enable(&api)
82 api.InstallHandlers(r, gaemiddleware.BaseProd()) 82 api.InstallHandlers(r, gaemiddleware.BaseProd())
83 83
84 http.DefaultServeMux.Handle("/", r) 84 http.DefaultServeMux.Handle("/", r)
85 } 85 }
OLDNEW
« no previous file with comments | « milo/appengine/frontend/cron.yaml ('k') | milo/common/config/project.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698