mirror of
https://github.com/bs-community/blessing-skin-plugins.git
synced 2025-01-09 04:07:51 +08:00
[texture-description] update middleware
This commit is contained in:
parent
b2715669f6
commit
7bca674bcd
@ -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": "",
|
||||
|
@ -1,14 +1,16 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Routing\Middleware\SubstituteBindings;
|
||||
|
||||
Route::prefix('texture/{texture}/description')
|
||||
->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']);
|
||||
|
Loading…
Reference in New Issue
Block a user