This commit is contained in:
Bryce Covert
2023-01-11 11:01:39 -08:00
parent ec4e6624b5
commit 7cec382c52
9 changed files with 45 additions and 1815 deletions

View File

@@ -2,6 +2,7 @@
(:require
[amazonica.core :refer [defcredential]]
[auto-ap.client-routes :as client-routes]
[auto-ap.ssr.admin :as ssr-admin]
[auto-ap.routes.auth :as auth]
[auto-ap.routes.exports :as exports]
[auto-ap.routes.graphql :as graphql]
@@ -38,6 +39,7 @@
(defroutes static-routes
(GET "/" [] (response/resource-response "index.html" {:root "public"}))
(route/resources "/")
(routes (ANY "*" {:keys [uri]}
(if (bidi/match-route client-routes/routes uri)
@@ -73,6 +75,7 @@
(def app-routes
(routes
(wrap-transaction api-routes)
ssr-admin/admin-routes
static-routes))
(defn wrap-logging [handler]

View File

@@ -15,6 +15,8 @@
(def normal-date "MM/dd/yyyy")
(def iso-date "yyyy-MM-dd")
(def standard-time "MM/dd/yyyy hh:mm aa")
(defn parse [v format]
(try
(time/from-time-zone (f/parse (f/formatter format) v)