2016-10-03 21:44:26 +08:00
|
|
|
<?php
|
|
|
|
|
2020-01-13 08:37:57 +08:00
|
|
|
Route::get('{player}.json', 'TextureController@json');
|
|
|
|
Route::get('csl/{player}.json', 'TextureController@json');
|
2016-10-03 21:44:26 +08:00
|
|
|
|
2020-01-13 08:37:57 +08:00
|
|
|
Route::get('textures/{hash}', 'TextureController@texture');
|
2020-06-16 10:03:28 +08:00
|
|
|
Route::get('csl/textures/{hash}', 'TextureController@texture');
|
2020-01-13 08:37:57 +08:00
|
|
|
Route::get('raw/{tid}', 'TextureController@raw');
|
2016-10-03 21:44:26 +08:00
|
|
|
|
2020-01-13 08:37:57 +08:00
|
|
|
Route::prefix('avatar')->name('avatar.')->group(function () {
|
|
|
|
Route::get('player/{name}', 'TextureController@avatarByPlayer')->name('player');
|
|
|
|
Route::get('user/{uid}', 'TextureController@avatarByUser')->name('user');
|
2020-07-29 10:57:53 +08:00
|
|
|
Route::get('hash/{hash}', 'TextureController@avatarByHash')->name('hash');
|
2020-01-13 08:37:57 +08:00
|
|
|
Route::get('{tid}', 'TextureController@avatarByTexture')->name('texture');
|
|
|
|
});
|
2016-10-03 21:44:26 +08:00
|
|
|
|
2020-07-29 18:38:21 +08:00
|
|
|
Route::prefix('preview')->name('preview.')->group(function () {
|
|
|
|
Route::get('{texture}', 'TextureController@preview')->name('texture')
|
|
|
|
->middleware(Illuminate\Routing\Middleware\SubstituteBindings::class);
|
|
|
|
Route::get('hash/{hash}', 'TextureController@previewByHash')->name('hash');
|
|
|
|
});
|