Last active
October 12, 2022 14:37
-
-
Save oitee/edb8552301b76c332f35b84a4700aa33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[compojure.core :refer [defroutes GET]] | |
'[ring.adapter.jetty :refer [run-jetty]]) | |
(defroutes app | |
(GET "/" request (str "Hello World! This is your URI: " (:uri request))) | |
(GET "/:name" [name] (str "Hello, " name))) | |
(run-jetty app {:port 8080}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment