-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoute.php
More file actions
32 lines (27 loc) · 887 Bytes
/
Copy pathRoute.php
File metadata and controls
32 lines (27 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
use Illuminate\Support\Facades\Route;
$config = file_get_contents(__DIR__.'/gp247.json');
$config = json_decode($config, true);
if(gp247_extension_check_active($config['configGroup'], $config['configKey'])) {
Route::group(
[
'middleware' => GP247_FRONT_MIDDLEWARE,
'prefix' => 'plugin/shippingstandard',
'namespace' => 'App\GP247\Plugins\ShippingStandard\Controllers',
],
function () {
Route::get('index', 'FrontController@index')
->name('shippingstandard.index');
}
);
Route::group(
[
'prefix' => GP247_ADMIN_PREFIX.'/shippingstandard',
'middleware' => GP247_ADMIN_MIDDLEWARE,
],
function () {
Route::get('/', \App\GP247\Plugins\ShippingStandard\Livewire\AdminLivewire::class)
->name('admin_shippingstandard.index');
}
);
}