43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Subscription\app\Http\Controllers\SubscriptionController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::group([], function () {
|
|
Route::post('subscriptions/store', [SubscriptionController::class, 'store'])->name('subscription.store');
|
|
// Route::resource('subscription', SubscriptionController::class)->names('subscription');
|
|
});
|
|
|
|
|
|
Route::group(
|
|
[
|
|
'prefix' => 'apanel',
|
|
'middleware' => ['auth'],
|
|
'as' => 'cms.',
|
|
],
|
|
function () {
|
|
Route::group(
|
|
[
|
|
'prefix' => 'cms',
|
|
'as' => 'subscription.',
|
|
'controller' => 'SubscriptionController',
|
|
],
|
|
function () {
|
|
Route::get('subscription', 'index')->name('index');
|
|
Route::delete('subscription/{uuid}/delete', 'destroy')->name('delete');
|
|
}
|
|
);
|
|
}
|
|
);
|