code: func (d *Dispatcher) InstallRoutes(r *router.Router, mw router.MiddlewareChain) {
  	queues := stringset.New(0)
  
  	d.mu.RLock()
  	for _, h := range d.handlers {
  		queues.Add(h.queue)
  	}
  	d.mu.RUnlock()
  
  	for _, q := range queues.ToSlice() {
  		r.POST(
  			fmt.Sprintf("%s%s/*title", d.baseURL(), q),
  			mw.Extend(gaemiddleware.RequireTaskQueue(q)),
  			d.processHTTPRequest)
  	}
  }
docs: // InstallRoutes installs appropriate HTTP routes in the router.
  //
  // Must be called only after all task handlers are registered!