Skip to content

Commit

Permalink
fix: add cache region for GET summit by id v2
Browse files Browse the repository at this point in the history
  • Loading branch information
smarcet committed Oct 9, 2024
1 parent c9ff382 commit 712525d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/api_v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
**/

use Illuminate\Support\Facades\Route;

use Illuminate\Support\Facades\Config;
//OAuth2 Protected API V2


Expand All @@ -22,7 +22,7 @@

Route::group(['prefix' => '{id}'], function () {

Route::get('', ['uses' => 'OAuth2SummitApiController@getSummit'])->where('id', 'current|[0-9]+');
Route::get('', ['middleware' => 'cache:' . Config::get('cache_api_response.get_summit_response_lifetime', 1200).',SUMMITS,id', 'uses' => 'OAuth2SummitApiController@getSummit'])->where('id', 'current|[0-9]+');
// events
Route::group(['prefix' => 'events'], function () {

Expand Down

0 comments on commit 712525d

Please sign in to comment.