             (-> (http-response/response file)
                 (http-response/content-type content-type))
             (println "return-file(): can not access file: " (.getName file)))))
+
+(defn return-file
+    [file-name content-type]
+    (http-response/file-response file-name {:root "www"}))
 
 (defn get-hostname
     []

        "/favicon.ico"                     (return-file "favicon.ico"         "image/x-icon")
        "/emender-service.css"             (return-file "emender-service.css" "image/x-icon")
        "/bootstrap.min.css"               (return-file "bootstrap.min.css"   "text/css")
        "/emender-service.css"             (return-file "emender-service.css" "text/css")
        "/bootstrap.min.js"                (return-file "bootstrap.min.js"    "application/javascript")
        "/"                      (render-front-page     request)
        "/job-list"              (render-job-list-page  request)
        "/book-list"             (render-book-list-page request)

                (-> (http-response/response output-html)
            (http-response/content-type "text/html"))))))

; not used anymore
(defn return-file-
    "Creates HTTP response containing content of specified file.
     Special value nil / HTTP response 404 is returned in case of any I/O error."
    [file-name content-type]
