(ns auto-ap.routes.ledger)

(def routes {""                            {:get ::all-page}
             "/new" {:get ::new
                     :post ::new-submit
                     "/location-select" ::location-select
                     "/account-typeahead" ::account-typeahead
                     "/line-item" {:get ::new-line-item}}

             "/external-new" ::external-page
             "/external-import-new" {"" ::external-import-page
                                     "/parse" ::external-import-parse
                                     "/import" ::external-import-import}
             "/investigate" {"" ::investigate
                             "/results" ::investigate-results}
             "/table"                      ::table 
             "/csv"                      ::csv 
             "/bank-account-filter" ::bank-account-filter
             "/reports/balance-sheet" {"" ::balance-sheet
                                       "/run" ::run-balance-sheet
                                       "/export" ::export-balance-sheet}
             "/reports/cash-flows" {"" ::cash-flows
                                       "/run" ::run-cash-flows
                                       "/export" ::export-cash-flows}
             "/reports/profit-and-loss" {"" ::profit-and-loss
                                       "/run" ::run-profit-and-loss
                                       "/export" ::export-profit-and-loss}})