Skip to content

Commit

Permalink
cleanup config-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Mar 11, 2024
1 parent 0899a5f commit 13ae4ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
hiccup/hiccup {:mvn/version "1.0.5"} ; server side templating

; modular
org.pinkgorilla/modular {:mvn/version "0.0.38"} ; persistence
org.pinkgorilla/modular {:mvn/version "0.0.38"} ; encoding
}


Expand Down
7 changes: 1 addition & 6 deletions src-demo/demo/https.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@
[modular.webserver.middleware.bidi :refer [wrap-bidi]]
[modular.webserver.middleware.exception :refer [wrap-fallback-exception]]
[modular.webserver.middleware.api :refer [wrap-api-handler]]
[modular.webserver.page :refer [page]]
[modular.config :as config]))

(config/set! :demo {:mode 3 :message "testing"})

[modular.webserver.page :refer [page]]))

(defn main-page [_]
(page {:title "demo-123"
:author "goblin77"
}
[:div
[:h1 "hello, world!"]
[:a {:href "/config"} [:p "config handler "]]
[:a {:href "/r/demo.txt"} [:p "demo.txt"]]
[:a {:href "/big-void"} [:p "big-void (unknown route)"]]]))

Expand Down

0 comments on commit 13ae4ed

Please sign in to comment.