35 lines
2.2 KiB
Clojure
35 lines
2.2 KiB
Clojure
(ns auto-ap.ssr-routes)
|
|
|
|
(def routes {"logout" :logout
|
|
"search" :search
|
|
"admin" {"/history" {"" :admin-history
|
|
"/" :admin-history
|
|
#"/search/?" :admin-history-search
|
|
["/" [#"\d+" :entity-id] #"/?"] :admin-history-search
|
|
["/inspect/" [#"\d+" :entity-id] #"/?"] :admin-history-inspect}
|
|
"/ezcater-xls" :admin-ezcater-xls}
|
|
"transaction" {"/insights" {"" :transaction-insights
|
|
"/table" :transaction-insight-table
|
|
["/approve/" [#"\d+" :transaction-id]] {:post :transaction-insight-approve}
|
|
["/rows/" [#"\d+" :after]] {:get :transaction-insight-rows}
|
|
["/explain/" [#"\d+" :transaction-id]] {:get :transaction-insight-explain}}}
|
|
"company" {"" :company
|
|
"/dropdown" :company-dropdown-search-results
|
|
"/active" {:put :active-client}
|
|
"/1099" :company-1099
|
|
"/1099/table" {:get :company-1099-vendor-table}
|
|
"/1099/vendor-dialog" {["/" [#"\d+" :vendor-id]] {:get :company-1099-vendor-dialog
|
|
:post :company-1099-vendor-save}}
|
|
"/reports" {"" {:get :company-reports
|
|
:delete :company-reports-delete}
|
|
"/table" :company-reports-table}
|
|
"/yodlee" {"" {:get :company-yodlee}
|
|
"/table" {:get :company-yodlee-table}
|
|
"/fastlink" {:get :company-yodlee-fastlink-dialog}
|
|
"/refresh" {:put :company-yodlee-provider-account-refresh}}
|
|
}})
|
|
|
|
|
|
(def only-routes ["/" routes])
|
|
|