Skip to content

Commit

Permalink
CMR-4850: Fixed the OPTIONS bug. (#513)
Browse files Browse the repository at this point in the history
* CMR-4850: Fixed the OPTIONS bug.

* CMR-4850: Fixed a typo.
  • Loading branch information
sxu123 authored May 14, 2018
1 parent eaa45ae commit 6f184f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common-app-lib/src/cmr/common_app/api/health.clj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
takes a request-context as a parameter to determine if the application and its dependencies are
working as expected."
[health-fn]
(OPTIONS "/health" req common-routes/options-response)
(GET "/health" {:keys [request-context]}
(get-app-health request-context health-fn)))
(context "/health" []
(OPTIONS "/" req common-routes/options-response)
(GET "/" {:keys [request-context]}
(get-app-health request-context health-fn))))

0 comments on commit 6f184f5

Please sign in to comment.