31 lines
1.1 KiB
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
2018-12-18 12:55:19 +03:00
Route::group([
'middleware' => 'admin',
'prefix' => 'apps/offlinepayment',
'namespace' => 'Modules\OfflinePayment\Http\Controllers'
], function () {
Route::get('settings', 'Settings@edit')->name('offlinepayment.edit');
Route::post('settings', 'Settings@update')->name('offlinepayment.update');
Route::post('settings/get', 'Settings@get')->name('offlinepayment.get');
Route::post('settings/delete', 'Settings@delete')->name('offlinepayment.delete');
2017-09-14 22:21:00 +03:00
});
2018-12-18 12:55:19 +03:00
Route::group([
'middleware' => 'customer',
2018-12-18 12:55:19 +03:00
'prefix' => 'customers',
'namespace' => 'Modules\OfflinePayment\Http\Controllers'
], function () {
Route::get('invoices/{invoice}/offlinepayment', 'OfflinePayment@show');
Route::post('invoices/{invoice}/offlinepayment/confirm', 'OfflinePayment@confirm');
});
2018-12-18 12:55:19 +03:00
Route::group([
'middleware' => ['signed', 'language'],
'prefix' => 'signed',
2018-12-18 12:55:19 +03:00
'namespace' => 'Modules\OfflinePayment\Http\Controllers'
], function () {
Route::post('invoices/{invoice}/offlinepayment', 'OfflinePayment@link');
Route::post('invoices/{invoice}/offlinepayment/confirm', 'OfflinePayment@confirm');
});