(ns auto-ap.routes.admin.transaction-rules)

(def routes {""                         {:get  ::page
                                         :put  ::save
                                         :post ::save}
             "/table"                   ::table
             "/account/filled"          ::dialog-filled
             "/account/new"             ::new-account
             "/account/location-select" ::location-select
             "/account/typeahead"       ::account-typeahead
             "/test"                    ::test
             "/new"                     {:get ::new-dialog}
             "/navigate"                     ::navigate
             ["/" [#"\d+" :db/id] "/edit"]  ::edit-dialog
             ["/" [#"\d+" :db/id] "/delete"]  ::delete
             ["/" [#"\d+" :db/id] "/run"]   {:get ::execute-dialog
                                             :post ::execute}
             "/check-badges"            ::check-badges
             })
