diff --git a/plugins/texture-description/package.json b/plugins/texture-description/package.json index f562cc6..a66c759 100644 --- a/plugins/texture-description/package.json +++ b/plugins/texture-description/package.json @@ -1,7 +1,7 @@ { "name": "texture-description", "title": "Blessing\\TextureDescription::general.title", - "version": "1.3.1", + "version": "1.3.2", "description": "Blessing\\TextureDescription::general.description", "author": "Steven Qiu & GPlane", "url": "", diff --git a/plugins/texture-description/routes.php b/plugins/texture-description/routes.php index f5a5838..93a1eaf 100644 --- a/plugins/texture-description/routes.php +++ b/plugins/texture-description/routes.php @@ -1,14 +1,16 @@ middleware(['web', 'bindings']) + ->middleware(['web', SubstituteBindings::class]) ->group(function () { Route::get('', 'DescriptionController@read'); Route::put('', 'DescriptionController@update')->middleware(['auth']); }); Route::prefix('api/textures/{texture}/description') - ->middleware(['api', 'throttle:60,1', 'bindings']) + ->middleware(['api', 'throttle:60,1', SubstituteBindings::class]) ->group(function () { Route::get('', 'DescriptionController@read'); Route::put('', 'DescriptionController@update')->middleware(['auth']);