startup for getting ezcater going.

This commit is contained in:
2022-07-09 08:32:33 -07:00
parent 892674343d
commit 540038b4dd
2 changed files with 23 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
[auto-ap.routes.graphql :as graphql]
[auto-ap.routes.invoices :as invoices]
[auto-ap.routes.queries :as queries]
[auto-ap.routes.yodlee :as yodlee]
[auto-ap.routes.ezcater :as ezcater]
[auto-ap.routes.yodlee2 :as yodlee2]
[bidi.bidi :as bidi]
[buddy.auth.backends.token :refer [jws-backend]]
@@ -59,6 +59,7 @@
queries/query2-routes
invoices/routes
graphql/routes
ezcater/routes
auth/routes
health-check))

View 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))