Skip to content

Commit

Permalink
main Disable api rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
latheesan-k committed Dec 3, 2024
1 parent 7575bed commit e0dc392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function register(): void
*/
public function boot(): void
{
RateLimiter::for('api-auth', fn() => Limit::perMinute(60));
// RateLimiter::for('api-auth', fn() => Limit::perMinute(60));

Event::listen(function (SocialiteWasCalled $event) {
$event->extendSocialite('discord', DiscordProvider::class);
Expand Down
5 changes: 3 additions & 2 deletions application/routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
*/
Route::prefix('v1')->name('api.v1.')->group(static function ()
{
// ->middleware(['throttle:api-auth'])

// Auth
Route::prefix('auth')->name('auth.')->middleware(['throttle:api-auth'])->group(static function ()
Route::prefix('auth')->name('auth.')->group(static function ()
{

// Public Endpoints
Expand All @@ -27,7 +28,7 @@
});

// Stats
Route::prefix('stats')->name('stats.')->middleware(['throttle:api-auth'])->group(static function ()
Route::prefix('stats')->name('stats.')->group(static function ()
{
// Public Endpoints
Route::get('global/{publicApiKey}', [StatsController::class, 'global']);
Expand Down

0 comments on commit e0dc392

Please sign in to comment.