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

Unified Diff: milo/frontend/main.go

Issue 2955783002: [milo] fix tests on windows. (Closed)
Patch Set: fix the other tests Created 3 years, 6 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/appengine/main.go ('k') | milo/frontend/main_test.go » ('j') | 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 6aa14894387149ab52c08e0e7d68dfbc9ff9a135..e6e21e367bd9a770cddb784c1b18181668fc04ea 100644
--- a/milo/frontend/main.go
+++ b/milo/frontend/main.go
@@ -30,12 +30,12 @@ func emptyPrelude(c context.Context, methodName string, req proto.Message) (cont
}
// Where it all begins!!!
-func Run() {
+func Run(templatePath string) {
// Register plain ol' http handlers.
r := router.New()
gaemiddleware.InstallHandlers(r)
- basemw := common.Base("templates")
+ basemw := common.Base(templatePath)
r.GET("/", basemw, frontpageHandler)
// Admin and cron endpoints.
« no previous file with comments | « milo/frontend/appengine/main.go ('k') | milo/frontend/main_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698