 
 (defmethod dispatch :registry-list
   [_]
-  (fetch "/admin/registries"
+  (fetch (routes/path-for-backend :registries)
          (fn [response]
            (reglist/mount! response))))
 
 (defmethod dispatch :registry-info
   [{:keys [route-params]}]
-  (fetch (str "/admin/registries/" (:id route-params))
+  (fetch (routes/path-for-backend :registry route-params)
          (fn [response]
            (reginfo/mount! response))))
 


(defmethod dispatch :dockerhub-list
  [_]
  (fetch "/dockerhub/users/sum"
         (fn [response]
           (dhlist/mount! response))))



(defmethod dispatch :network-list
  [_]
  (fetch (routes/path-for-backend :networks)
         (fn [response]
           (nlist/mount! response))))

(defmethod dispatch :network-info
  [{:keys [route-params]}]
  (fetch (routes/path-for-backend :network route-params)
         (fn [response]
           (ninfo/mount! response))))

