             [io.pedestal.service.http.route :as route]
             [io.pedestal.service.http.route.definition :refer [defroutes]]
             [io.pedestal.service.http.body-params :as body-params]
-            [ring.util.response :as ring-response]
+            [ring.util.response :as ring-resp]
             [io.pedestal.service.http.servlet :as ps]
             [io.pedestal.service.log :as log]
             ;; the impl dependencies will go away

; [[["/order"  ^:interceptors [verify-request] ^:constraints {:user-id #"[0-9]+"}
;    {:get list-orders :post create-order}
;    ["/:id"  ^:constraints {:user-id #"[0-9]+"} ^:interceptors [verify-order-ownership load-order-from-db]
;    {:get view-order :put update-order}]]]]
;;==================================================================================
(defroutes routes
  [[["/" {:get home-page}
     ; set common interceptors to be executed for all routes
     ^:interceptors [(body-params/body-params) bootstrap/html-body session-interceptor]
     ["/about" {:get about-page}]
     ["/api/schedule/:schedid" {:get get-schedule}]

            [io.pedestal.service.http.route.definition :refer [defroutes]]
            [io.pedestal.service.http.sse :refer :all]
            [ring.util.mime-type :as ring-mime]
            [ring.middleware.session.cookie :as cookie]

            [minuette.quartzite.scheduler :as scheduler]
    ))


;; -------------------------------------------------------------------------------
;; for xhr/request from pedestal app, request body was edn encoded, hence under :end-params key.
;; destrcture [{reqbody :edn-params :as request}], request context map still :as request.
;;

; An interceptor is one instance of an Interceptor record or a map with 
; :enter, :leave, :pause, :resume, and :error keys. 


(defn about-page
  [request]
