code: func InstallHandlers(r *router.Router, mw router.MiddlewareChain) {
  	dsp := &tq.Dispatcher{}
  	registerTasks(dsp)
  	mw = mw.Extend(func(c *router.Context, next router.Handler) {
  		c.Context, _ = context.WithTimeout(c.Context, 30*time.Second)
  		c.Context = withDispatcher(c.Context, dsp)
  		c.Context = withConfig(c.Context, &rpc.Config{})
  		c.Context = withCompute(c.Context, newCompute(c.Context))
  		c.Context = withSwarming(c.Context, newSwarming(c.Context))
  		next(c)
  	})
  	dsp.InstallRoutes(r, mw)
  	r.GET("/internal/cron/count-vms", mw, newHTTPHandler(countVMsAsync))
  	r.GET("/internal/cron/create-instances", mw, newHTTPHandler(createInstancesAsync))
  	r.GET("/internal/cron/drain-vms", mw, newHTTPHandler(drainVMsAsync))
  	r.GET("/internal/cron/expand-configs", mw, newHTTPHandler(expandConfigsAsync))
  	r.GET("/internal/cron/manage-bots", mw, newHTTPHandler(manageBotsAsync))
  	r.GET("/internal/cron/report-quota", mw, newHTTPHandler(reportQuotasAsync))
  }
docs: // InstallHandlers installs HTTP request handlers into the given router.