 (def users (atom ["John" "Jane"]))
 ;return content of users atom as JSON
 
+(defresource index 
+             :available-media-types ["text/html"]
+             :exists?  (fn [context]
+                         [ (io/get-resource "/index.html") 
+                           {::file (file (str (io/resource-path) "/index.html"))} ])
+             :handle-ok (fn [ {{{resource  :resource} :route-params} :request}]
+                          (clojure.java.io/input-strea (io/get-resource "/index.html")))
+             :last-modified (fn [{{{resource :resource} :route-params} :request}]
+                              (.lastModified (file (str (io/resource-path) "index.html"))))
+             )
 
 (defresource get-users
              :allowed-methods [:get]

            [compojure.route :refer [not-found]]
            [ombs.core :as core]
            [ombs.handler :as handler]
            [cheshire.core :refer [generate-string]]            
            [liberator.core :refer [defresource resource request-method-in]]
            ))

           (GET "/" request handler/index)
           (ANY "/add-user" request add-user)
           (ANY "/users" request get-users)
           (ANY "/" request index)
           (not-found "Page not found"))

(def engine
