                     :version    (config/get-version request)
                     :api_prefix (config/get-api-prefix request)
                     :hostname   hostname :test "/api"}]
-        (send-response response)))
+        (send-response response request)))
 
 (defn configuration-handler
     [request]
     (let [response (-> request :configuration)]
-        (send-response response)))
+        (send-response response request)))
 
 (defn system-banners
     [request uri]
     (if (= uri "/api/system/banners")
         (let [response {:message "Alpha version"
                         :type    "Warning"}]
-        (send-response response))))
+        (send-response response request))))
 
 (defn reload-job-list
     [previous-response request]

        get-job-name))

(defn send-response
    [response]
    (-> (http-response/response (json/write-str response))
        (http-response/content-type "application/json")))
   ;(-> (http-response/response (with-out-str (json/pprint response)))

(defn send-plain-response
    [response]

            (-> (jenkins-api/disable-job (config/get-jenkins-url request)
                                         (config/get-jenkins-auth request)
                                         job-name)
                (send-response request))
            (-> (job-does-not-exist-response job-name "enable")
                (send-response request)))))

(defn delete-job
    [request]
