Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
provided a redirect to /ui/ function
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Hartmann committed Sep 15, 2015
1 parent ab88904 commit cb6f276
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
[ring "1.4.0"]
[org.eclipse.jetty/jetty-servlet "9.2.10.v20150310"]
[amalloy/ring-gzip-middleware "0.1.3"]
[environ "1.0.0"]
[environ "1.0.1"]
[io.clj/logging "0.8.1"]
[org.apache.logging.log4j/log4j-api "2.3"]
[org.apache.logging.log4j/log4j-core "2.3"]
Expand All @@ -33,16 +33,16 @@
[amazonica "0.3.33" :exclusions [org.apache.httpcomponents/httpclient joda-time]]
[org.clojure/data.codec "0.1.0"]
[overtone/at-at "1.2.0"]
[org.zalando.stups/tokens "0.9.0"]
[com.netflix.hystrix/hystrix-clj "1.4.14"]
[com.netflix.hystrix/hystrix-core "1.4.14"]
[com.netflix.hystrix/hystrix-metrics-event-stream "1.4.14"]
[org.zalando.stups/tokens "0.9.1"]
[com.netflix.hystrix/hystrix-clj "1.4.15"]
[com.netflix.hystrix/hystrix-core "1.4.15"]
[com.netflix.hystrix/hystrix-metrics-event-stream "1.4.15"]
[org.clojure/core.incubator "0.1.3"]
[metrics-clojure "2.5.1" :exclusions [io.dropwizard.metrics/metrics-core]]
[io.dropwizard.metrics/metrics-servlets "3.1.2"]
[org.slf4j/slf4j-api "1.7.12"]
[com.fasterxml.jackson.core/jackson-core "2.6.1"]
[com.fasterxml.jackson.core/jackson-databind "2.6.1"]
[com.fasterxml.jackson.core/jackson-core "2.6.2"]
[com.fasterxml.jackson.core/jackson-databind "2.6.2"]
[org.apache.httpcomponents/httpclient "4.5"]
[commons-codec "1.10"]]

Expand Down
4 changes: 4 additions & 0 deletions src/org/zalando/stups/friboo/system/http.clj
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@
tx-parent-id (get-in request [:headers Transactions/APPDYNAMICS_HTTP_HEADER])]
(Transactions/runInTransaction operation-id tx-parent-id #(next-handler request)))))

(defn redirect-to-swagger-ui
[& _]
(ring.util.response/redirect "/ui/"))

(defn start-component
"Starts the http component."
[component metrics audit-logger definition resolver-fn]
Expand Down

0 comments on commit cb6f276

Please # to comment.