diff --git a/routes/static.php b/routes/static.php index e9d2fecb..e93aca8c 100644 --- a/routes/static.php +++ b/routes/static.php @@ -4,6 +4,7 @@ Route::get('{player}.json', 'TextureController@json'); Route::get('csl/{player}.json', 'TextureController@json'); Route::get('textures/{hash}', 'TextureController@texture'); +Route::get('csl/textures/{hash}', 'TextureController@texture'); Route::get('raw/{tid}', 'TextureController@raw'); Route::prefix('avatar')->name('avatar.')->group(function () { diff --git a/tests/HttpTest/ControllersTest/TextureControllerTest.php b/tests/HttpTest/ControllersTest/TextureControllerTest.php index 24cf5665..58a23357 100644 --- a/tests/HttpTest/ControllersTest/TextureControllerTest.php +++ b/tests/HttpTest/ControllersTest/TextureControllerTest.php @@ -99,6 +99,10 @@ class TextureControllerTest extends TestCase $disk->put($skin->hash, ''); $this->get('/textures/'.$skin->hash) + ->assertSuccessful() + ->assertHeader('Content-Type', 'image/png'); + $this->get('/csl/textures/'.$skin->hash) + ->assertSuccessful() ->assertHeader('Content-Type', 'image/png'); }