resq/config/routes/customer.yaml

34 lines
855 B
YAML

customer_list:
path: /customers
controller: App\Controller\CustomerController::index
customer_rows:
path: /customers/rows
controller: App\Controller\CustomerController::rows
methods: [POST]
customer_create:
path: /customers/create
controller: App\Controller\CustomerController::addForm
methods: [GET]
customer_create_submit:
path: /customers/create
controller: App\Controller\CustomerController::addSubmit
methods: [POST]
customer_update:
path: /customers/{id}
controller: App\Controller\CustomerController::updateForm
methods: [GET]
customer_update_submit:
path: /customers/{id}
controller: App\Controller\CustomerController::updateSubmit
methods: [POST]
customer_delete:
path: /customers/{id}
controller: App\Controller\CustomerController::destroy
methods: [DELETE]