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]