 
 (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!]

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

                                :artifact-id "puppetserver"})
         upgrade-error     (core/construct-404-error-message jruby-service product-name)
         update-server-url (get-in config [:product :update-server-url])]
     (version-check/check-for-updates! {:product-name product-name} update-server-url)

     (retrieve-ca-cert! localcacert)
