startup for getting ezcater going.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
[auto-ap.routes.graphql :as graphql]
|
[auto-ap.routes.graphql :as graphql]
|
||||||
[auto-ap.routes.invoices :as invoices]
|
[auto-ap.routes.invoices :as invoices]
|
||||||
[auto-ap.routes.queries :as queries]
|
[auto-ap.routes.queries :as queries]
|
||||||
[auto-ap.routes.yodlee :as yodlee]
|
[auto-ap.routes.ezcater :as ezcater]
|
||||||
[auto-ap.routes.yodlee2 :as yodlee2]
|
[auto-ap.routes.yodlee2 :as yodlee2]
|
||||||
[bidi.bidi :as bidi]
|
[bidi.bidi :as bidi]
|
||||||
[buddy.auth.backends.token :refer [jws-backend]]
|
[buddy.auth.backends.token :refer [jws-backend]]
|
||||||
@@ -59,6 +59,7 @@
|
|||||||
queries/query2-routes
|
queries/query2-routes
|
||||||
invoices/routes
|
invoices/routes
|
||||||
graphql/routes
|
graphql/routes
|
||||||
|
ezcater/routes
|
||||||
auth/routes
|
auth/routes
|
||||||
health-check))
|
health-check))
|
||||||
|
|
||||||
|
|||||||
21
src/clj/auto_ap/routes/ezcater.clj
Normal file
21
src/clj/auto_ap/routes/ezcater.clj
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
(ns auto-ap.routes.ezcater
|
||||||
|
(:require
|
||||||
|
[clojure.tools.logging :as log]
|
||||||
|
[compojure.core :refer [context defroutes GET POST]]
|
||||||
|
[ring.middleware.json :refer [wrap-json-params]]
|
||||||
|
[ring.util.request :refer [body-string]]))
|
||||||
|
|
||||||
|
(defroutes routes
|
||||||
|
(wrap-routes
|
||||||
|
(context "/ezcater" []
|
||||||
|
(GET "/event" request
|
||||||
|
(log/info (str "GET EVENT " (body-string request) request))
|
||||||
|
{:status 200
|
||||||
|
:headers {"Content-Type" "application/json"}
|
||||||
|
:body "{}"})
|
||||||
|
(POST "/event" request
|
||||||
|
(log/info (str "POST EVENT " (body-string request) request))
|
||||||
|
{:status 200
|
||||||
|
:headers {"Content-Type" "application/json"}
|
||||||
|
:body "{}"}))
|
||||||
|
wrap-json-params))
|
||||||
Reference in New Issue
Block a user