 
 (defservice master-service
   master/MasterService
-  [[:WebroutingService add-ring-handler get-route]
+  [[:WebroutingService add-ring-handler get-route get-registered-endpoints]
    [:PuppetServerConfigService get-config]
    [:RequestHandlerService handle-request]
    [:CaService initialize-master-ssl! retrieve-ca-cert! retrieve-ca-crl!]

   (core/validate-memory-requirements!)
   (let [path              (get-route this :master-routes)
         config            (get-config)
         certname          (get-in config [:puppet-server :certname])
         localcacert       (get-in config [:puppet-server :localcacert])
         hostcrl           (get-in config [:puppet-server :hostcrl])

       this
      (compojure/context path [] (core/build-ring-handler handle-request))
      {:route-id :master-routes})

     (when upgrade-error-path
       (add-ring-handler
         this
         (core/construct-invalid-request-handler upgrade-error)
         {:route-id :invalid-in-puppet-4})))
   context)
  (start
    [this context]
