    [yada.yada :as yada :refer [yada resource as-resource]]
    [ring.middleware.cookies :refer [cookies-request cookies-response]])
   (:import [modular.bidi Router]))
-
-(defn hello []
-  (yada "Hello World!\n"))
-
-(defn- login-form-html [fields]
-  (html
-   [:div
-    [:style "* {margin:2px;padding:2px}"]
-    [:h1 "Login form"]
-    [:form {:method :post}
-     (for [{:keys [label type name]} fields]
-       [:div
-        [:label {:for name} label]
-        [:input {:type type :name name}]])
-     [:div [:input {:type :submit :name :submit :value "Login"}]]]]))
 
 (defn- login-form-parameters [fields]
   {:form

                            (when (= [user password] ["scott" "tiger"])
                              {:user "scott"
                               :roles #{"accounts/view"}}))
                  :authorization {:methods {:get true}}}})))]

      ["/cookie"


     :methods
     {:get
      {:produces "text/html"
       :response (html
                  [:div
                   [:style "* {margin:2px;padding:2px}"]
                   [:h1 "Login form"]
                   [:form {:method :post}
                    (for [{:keys [label type name]} fields]
                      [:div
                       [:label {:for name} label]
                       [:input {:type type :name name}]])
                    [:div [:input {:type :submit :name :submit :value "Login"}]]]])}
      
      :post
      {:parameters (login-form-parameters fields)
