             "/api/groups"                 (process-list-of-groups       request)
             "/api/components"             (process-list-of-components   request)
             "/api/components-to-chapter"  (process-list-of-components-to-chapter request)
+            "/api/info"                   (process-api-info             request)
             )))
 


(require '[ring.util.response     :as http-response])
(require '[clojure.tools.logging  :as log])

(require '[hurvinek.html-renderer :as html-renderer])
(require '[hurvinek.exporter      :as exporter])

          mime-type     (mime-type output-format)]
        (-> (http-response/response output-data)
            (http-response/content-type mime-type))))

(defn process-api-info
    [request]
    (let [response {:toasterNotifications [(str "info|Api response|<strong>Hurvinek</strong> api v1")]
                    :configuration (:configuration request)}]
        (send-rest-api-response response)))

(defn return-file
    "Creates HTTP response containing content of specified file.
