Skip to content

Instantly share code, notes, and snippets.

@oitee
Last active October 12, 2022 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oitee/edb8552301b76c332f35b84a4700aa33 to your computer and use it in GitHub Desktop.
Save oitee/edb8552301b76c332f35b84a4700aa33 to your computer and use it in GitHub Desktop.
(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