diff --git a/src/Config/package.sidebar.php b/src/Config/package.sidebar.php index eff545d..196351d 100644 --- a/src/Config/package.sidebar.php +++ b/src/Config/package.sidebar.php @@ -27,6 +27,6 @@ 'name' => 'SeAT API', 'icon' => 'fas fa-exchange-alt', 'route_segment' => 'api-admin', - 'route' => 'api-admin.list', + 'route' => 'seatcore::api-admin.list', ], ]; diff --git a/src/Http/routes.php b/src/Http/routes.php index 1dfe7a1..6032ba3 100644 --- a/src/Http/routes.php +++ b/src/Http/routes.php @@ -35,17 +35,17 @@ 'prefix' => 'api-admin', ], function () { Route::get('/') - ->name('api-admin.list') + ->name('seatcore::api-admin.list') ->uses('ApiAdminController@listTokens'); Route::post('/') - ->name('api-admin.token.create') + ->name('seatcore::api-admin.token.create') ->uses('ApiAdminController@generateToken'); Route::get('/logs/{token_id}') - ->name('api-admin.token.logs') + ->name('seatcore::api-admin.token.logs') ->uses('ApiAdminController@show'); Route::get('/delete/{token_id}') - ->name('api-admin.token.delete') + ->name('seatcore::api-admin.token.delete') ->uses('ApiAdminController@deleteToken'); }); }); diff --git a/src/resources/views/list.blade.php b/src/resources/views/list.blade.php index 767f2c9..dcc0062 100644 --- a/src/resources/views/list.blade.php +++ b/src/resources/views/list.blade.php @@ -12,7 +12,7 @@
- + {{ trans('api::seat.api_docs') }} @@ -21,7 +21,7 @@
-
+ {{ csrf_field() }}