blessing-skin-server/routes/static.php

22 lines
986 B
PHP
Raw Normal View History

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');
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');
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
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');
});