blessing-skin-server/routes/static.php
2020-01-13 08:37:57 +08:00

16 lines
600 B
PHP

<?php
Route::get('{player}.json', 'TextureController@json');
Route::get('csl/{player}.json', 'TextureController@json');
Route::get('textures/{hash}', 'TextureController@texture');
Route::get('raw/{tid}', 'TextureController@raw');
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('{tid}', 'TextureController@avatarByTexture')->name('texture');
});
Route::get('preview/{tid}', 'TextureController@preview');