              (resp-ok))))))
 
 (defmethod dispatch :registry-repository-ports [_]
-  (fn [{:keys [route-params query-string]}]
-    (let [query (keywordize-keys (query->map query-string))
-          repository-name (:repositoryName query)
-          repository-tag (:repositoryTag query)
+  (fn [{:keys [route-params query-params]}]
+    (let [query-params (keywordize-keys query-params)
+          repository-name (:repositoryName query-params)
+          repository-tag (:repositoryTag query-params)
           registry-id (:id route-params)]
       (if (or (nil? repository-name)
               (nil? repository-tag))

             (resp-ok))))))

(defmethod dispatch :dockerhub-repository-ports [_]
  (fn [{:keys [route-params query-string]}]
    (let [query (keywordize-keys (query->map query-string))
          repository-name (:repositoryName query)
          repository-tag (:repositoryTag query)
          dockeruser-id (:id route-params)]
      (if (or (nil? repository-name)
              (nil? repository-tag))

           (resp-ok)))))

(defmethod dispatch :dockerhub-repository-tags [_]
  (fn [{:keys [route-params query-params]}]
    (let [query-params (keywordize-keys query-params)
          repository-name (:repository query-params)
          dockeruser-id (:id route-params)]
      (if (nil? repository-name)
        (resp-error 400 "Parameter repository missing")
