Skip to content

Works for error pages, not for 200s. #2

Open
@alexbbrown

Description

@alexbbrown

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions