 
 (defmethod dispatch :node-list
   [_]
-  (fetch "/nodes"
+  (fetch (routes/path-for-backend :nodes)
          (fn [response]
            (ndlist/mount! response))))
 
 (defmethod dispatch :node-info
   [{:keys [route-params]}]
-  (fetch (str "/nodes/" (:id route-params))
+  (fetch (routes/path-for-backend :node route-params)
          (fn [response]
            (ndinfo/mount! response))))
 


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



(defmethod dispatch :task-list
  [_]
  (fetch (routes/path-for-backend :tasks)
         (fn [response]
           (tlist/mount! response))))

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

