            (resp-ok)))))
 
 (defmethod dispatch :dockerhub-repository-tags [_]
-  (fn [{:keys [route-params query-string]}]
-    (let [query (keywordize-keys (query->map query-string))
-          repository-name (:repository query)
+  (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")

(defmethod dispatch :service-tasks [_]
  (fn [{:keys [route-params]}]
    (->> (api/service-tasks (:id route-params))
         (resp-ok))))

(defmethod dispatch :service-create [_]

(ns swarmpit.handler
  (:require [clojure.walk :refer [keywordize-keys]]
            [clojure.java.io :as io]
            [swarmpit.api :as api]
            [swarmpit.token :as token]))
