 
 (defmethod dispatch :service-list
   [_]
-  (fetch "/services"
+  (fetch (routes/path-for-backend :services)
          (fn [response]
            (slist/mount! response))))
 
 (defmethod dispatch :service-info
   [{:keys [route-params]}]
-  (fetch (str "/services/" (:id route-params))
+  (fetch (routes/path-for-backend :service route-params)
          (fn [response]
            (sinfo/mount! response))))
 
 (defmethod dispatch :service-create-image
   [_]
-  (fetch "/registries/sum"
-         (fn [response-reg]
-           (fetch "/dockerhub/users/sum"
-                  (fn [response-usr]
-                    (screatei/mount! response-reg response-usr))))))
+  (fetch (routes/path-for-backend :registries-sum)
+         (fn [registries]
+           (fetch (routes/path-for-backend :dockerhub-users-sum)
+                  (fn [users]
+                    (screatei/mount! registries users))))))
 
 (defmethod dispatch :service-create-config
   [_]
   (let [params (keywordize-keys (query->map (query-string)))]
-    (screatec/mount! (:registry params)
-                     (:repository params))))
+    (fetch (routes/path-for-backend :networks)
+           (fn [networks]
+             (screatec/mount! (:registry params)
+                              (:repository params)
+                              networks)))))
 
 (defmethod dispatch :service-edit
   [{:keys [route-params]}]
-  (fetch (str "/services/" (:id route-params))
+  (fetch (routes/path-for-backend :service-update route-params)
          (fn [response]
            (sedit/mount! response))))
 


(defmethod dispatch :network-list
  [_]
  (fetch "/networks"
         (fn [response]
           (nlist/mount! response))))

(defmethod dispatch :network-info
  [{:keys [route-params]}]
  (fetch (str "/networks/" (:id route-params))
         (fn [response]
           (ninfo/mount! response))))



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

