Skip to content
Permalink
Browse files

adding compojure

  • Loading branch information...
bradlucas committed Sep 18, 2019
1 parent 0ccb62a commit 9581ccdfc6d464b57fe165d6332160d51d1d3d02
Showing with 28 additions and 2 deletions.
  1. +17 −2 project.clj
  2. +11 −0 src/imagelocation/handler.clj
@@ -3,5 +3,20 @@
:url "http://example.com/FIXME"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.0"]]
:repl-options {:init-ns imagelocation.core})
:dependencies [[org.clojure/clojure "1.10.0"]
[compojure "1.6.1"]
[ring/ring-defaults "0.3.2"]]

:repl-options {:init-ns imagelocation.core}

:plugins [[lein-ring "0.12.5"]]
:ring {:handler imagelocation.handler/app}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring/ring-mock "0.3.2"]]}})






@@ -0,0 +1,11 @@
(ns imagelocation.handler
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.defaults :refer [wrap-defaults site-defaults]]))

(defroutes app-routes
(GET "/" [] "Hello World")
(route/not-found "Not Found"))

(def app
(wrap-defaults app-routes site-defaults))

0 comments on commit 9581ccd

Please sign in to comment.
You can’t perform that action at this time.