The docs don't seem to specify, and I can't get it to work, so am I
correct that dispatch-rules cant handle url patterns that contain
slashes?

;;Doesn't work
(define-values (static-dispatch static-url)
  (dispatch-rules
  ;;None of these functions take any arguments
   [("invoice/dashboard") dashboard]
   [("invoice/edit-company") edit-company]
   [("invoice/export-customers") export-customers]
   [("invoice/import-customers") import-customers]
   [("invoice/create-customer") create-customer]
   [("invoice/list-customers") list-customers]
   [("invoice/export-invoices") export-invoices]
   [("invoice/import-invoices") import-invoices]
   [("invoice/create-invoice") create-invoice]
   [("invoice/list-invoices") list-invoices]
   [("invoice/payment-methods") payment-methods]
   [("invoice/logout") logout]))

-Jordan
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to