test
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user