(ns auto-ap.ssr-routes)

(def routes {"logout" :logout
             "admin" {"/history" {""                                      :admin-history
                                  "/"                                     :admin-history
                                  #"/search/?"                            :admin-history-search
                                  ["/" [#"\d+" :entity-id] #"/?"]         :admin-history-search
                                  ["/inspect/" [#"\d+" :entity-id] #"/?"] :admin-history-inspect}}
             "company" {"/dropdown" :company-dropdown-contents
                        "/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}}}})


(def only-routes ["/" routes])

