code: func (s *Service) InstallHandlers(r *router.Router, base router.MiddlewareChain) {
  	// GET so that this can be invoked from cron
  	r.GET(fireAllTasksURL, base.Extend(gaemiddleware.RequireCron), s.FireAllTasksHandler)
  	r.POST(processShardPattern, base.Extend(gaemiddleware.RequireTaskQueue(baseName)),
  		func(ctx *router.Context) {
  			loop := ctx.Request.URL.Query().Get("single") == ""
  			s.ProcessShardHandler(ctx, loop)
  		})
  }
docs: // InstallHandlers installs http handlers.
  //
  // 'base' is usually gaemiddleware.BaseProd(), but can also be its derivative
  // if something else it needed in the context.