Open
Description
In my toy app: http://localhost:3000/devel/store/fdfd works, but http://localhost:3000/devel/ does not, can you please help me?
(ns babyproxy.handler
(:use compojure.core)
(:require [compojure.handler :as handler]
[compojure.route :as route]
[clj-http.client :as client]
[tailrecursion.ring-proxy :refer [wrap-proxy]]))
(defroutes app-routes
(GET "/" [] "Hello, world")
#_(GET "/proxy" [] [(client/get "http://google.com")])
(GET "/foo" [] "foo")
#_(route/resources "/")
(route/not-found "Not Found")
)
(def app
(-> app-routes (wrap-proxy "/devel" "http://www.apple.com"))
)
Metadata
Metadata
Assignees
Labels
No labels