From a03c44aadb713331ee58d5c53e5d0baef786e471 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Wed, 28 Oct 2015 17:32:44 +0000 Subject: [PATCH] Add cache routes --- app/Http/routes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/routes.php b/app/Http/routes.php index 64bc0691..a2358339 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -79,9 +79,11 @@ Route::group(['prefix' => 'api/web'], function() { Route::get('/tracks', 'Api\Web\TracksController@getIndex'); Route::get('/tracks/{id}', 'Api\Web\TracksController@getShow')->where('id', '\d+'); + Route::get('/tracks/cached/{id}/{format}', 'Api\Web\TracksController@getCachedTrack')->where(['id' => '\d+', 'name' => '.+']); Route::get('/albums', 'Api\Web\AlbumsController@getIndex'); Route::get('/albums/{id}', 'Api\Web\AlbumsController@getShow')->where('id', '\d+'); + Route::get('/albums/cached/{id}/{format}', 'Api\Web\AlbumsController@getCachedAlbum')->where(['id' => '\d+', 'name' => '.+']); Route::get('/playlists', 'Api\Web\PlaylistsController@getIndex'); Route::get('/playlists/{id}', 'Api\Web\PlaylistsController@getShow')->where('id', '\d+');