terom@6: """ terom@6: App URL maps terom@6: """ terom@6: terom@6: from werkzeug.routing import Map, Rule terom@6: terom@6: # controllers terom@15: from svv.controllers import Index terom@6: from svv.customers import CustomersView, CustomerView terom@35: from svv.orders import OrdersView, OrderView, EditOrderView, NewOrderView, OrderContractDocument terom@6: terom@6: # map URLs -> AppHandler terom@6: URLS = Map(( terom@6: Rule('/orders/', endpoint=OrdersView), terom@15: Rule('/orders/new', endpoint=NewOrderView), terom@6: Rule('/orders/', endpoint=OrderView), terom@35: Rule('/orders//edit', endpoint=EditOrderView), terom@15: Rule('/orders//Vuokrasopimus.pdf', endpoint=OrderContractDocument), terom@6: terom@6: Rule('/customers', endpoint=CustomersView), terom@6: Rule('/customers/', endpoint=CustomerView), terom@6: terom@6: # test stuff terom@6: Rule('/', endpoint=Index), terom@6: )) terom@6: terom@6: