2016-10-03 21:44:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Application Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register all of the routes for an application.
|
|
|
|
| It's a breeze. Simply tell Laravel the URIs it should respond to
|
|
|
|
| and give it the controller to call when that URI is requested.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2019-03-02 22:58:37 +08:00
|
|
|
* Resources.
|
2016-10-03 21:44:26 +08:00
|
|
|
*/
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::group(['middleware' => 'player'], function () {
|
2016-10-03 21:44:26 +08:00
|
|
|
// Json profile
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::get('/{player_name}.json', 'TextureController@json');
|
|
|
|
Route::get('/{api}/{player_name}.json', 'TextureController@jsonWithApi')->where('api', 'usm|csl');
|
2016-10-03 21:44:26 +08:00
|
|
|
// Legacy links
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::get('/skin/{player_name}.png', 'TextureController@skin');
|
|
|
|
Route::get('/cape/{player_name}.png', 'TextureController@cape');
|
2016-10-03 21:44:26 +08:00
|
|
|
});
|
|
|
|
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::get('/textures/{hash}', 'TextureController@texture');
|
|
|
|
Route::get('/{api}/textures/{hash}', 'TextureController@textureWithApi')->where('api', 'usm|csl');
|
2016-10-03 21:44:26 +08:00
|
|
|
|
2019-03-16 17:40:04 +08:00
|
|
|
Route::get('/avatar/player/{size}/{name}.png', 'TextureController@avatarByPlayer');
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::get('/avatar/{base64_email}.png', 'TextureController@avatar');
|
2016-10-03 21:44:26 +08:00
|
|
|
Route::get('/avatar/{size}/{base64_email}.png', 'TextureController@avatarWithSize');
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::get('/avatar/{tid}', 'TextureController@avatarByTid');
|
|
|
|
Route::get('/avatar/{size}/{tid}', 'TextureController@avatarByTidWithSize');
|
2016-10-03 21:44:26 +08:00
|
|
|
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::get('/raw/{tid}.png', 'TextureController@raw');
|
2016-10-03 21:44:26 +08:00
|
|
|
|
2019-03-02 22:58:37 +08:00
|
|
|
Route::get('/preview/{tid}.png', 'TextureController@preview');
|
|
|
|
Route::get('/preview/{size}/{tid}.png', 'TextureController@previewWithSize');
|