v2 first commit
This commit is contained in:
13
modules/OfflinePayments/Routes/admin.php
Normal file
13
modules/OfflinePayments/Routes/admin.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
Route::group([
|
||||
'middleware' => 'admin',
|
||||
'namespace' => 'Modules\OfflinePayments\Http\Controllers'
|
||||
], function () {
|
||||
Route::group(['prefix' => 'settings'], function () {
|
||||
Route::get('offline-payments', 'Settings@edit')->name('offline-payments.edit');
|
||||
Route::post('offline-payments', 'Settings@update')->name('offline-payments.update');
|
||||
Route::post('offline-payments/get', 'Settings@get')->name('offline-payments.get');
|
||||
Route::delete('offline-payments/delete', 'Settings@destroy')->name('offline-payments.delete');
|
||||
});
|
||||
});
|
10
modules/OfflinePayments/Routes/portal.php
Normal file
10
modules/OfflinePayments/Routes/portal.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
Route::group([
|
||||
'prefix' => 'portal',
|
||||
'middleware' => 'portal',
|
||||
'namespace' => 'Modules\OfflinePayments\Http\Controllers'
|
||||
], function () {
|
||||
Route::get('invoices/{invoice}/offline-payments', 'Payment@show')->name('portal.invoices.offline-payments.show');
|
||||
Route::post('invoices/{invoice}/offline-payments/confirm', 'Payment@confirm')->name('portal.invoices.offline-payments.confirm');
|
||||
});
|
10
modules/OfflinePayments/Routes/signed.php
Normal file
10
modules/OfflinePayments/Routes/signed.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
Route::group([
|
||||
'prefix' => 'signed',
|
||||
'middleware' => 'signed',
|
||||
'namespace' => 'Modules\OfflinePayments\Http\Controllers'
|
||||
], function () {
|
||||
Route::get('invoices/{invoice}/offline-payments', 'Payment@signed')->name('signed.invoices.offline-payments.show');
|
||||
Route::post('invoices/{invoice}/offline-payments/confirm', 'Payment@confirm')->name('signed.invoices.offline-payments.confirm');
|
||||
});
|
Reference in New Issue
Block a user