Skip to content

Commit

Permalink
Remove /push endpoint [API-352]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Dec 7, 2022
1 parent 33e4ddb commit 4b3684d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 72 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,3 @@ AWS_USE_PATH_STYLE_ENDPOINT=false
# API-343: For importing wait times:
QUEUES_API_URL=
QUEUES_API_KEY=

# API-344: HTTPAuth for /push routes
BASIC_AUTH_USERNAME=
BASIC_AUTH_PASSWORD=
39 changes: 0 additions & 39 deletions app/Http/Controllers/ProductController.php

This file was deleted.

1 change: 0 additions & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,5 @@ class Kernel extends HttpKernel
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
'restrict' => \App\Http\Middleware\RestrictContent::class,
'loginIp' => \App\Http\Middleware\LoginIpMiddleware::class,
'basic_auth' => \Aic\Hub\Foundation\Middleware\BasicAuthMiddleware::class,
];
}
5 changes: 0 additions & 5 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ public function boot()
->namespace($this->namespace)
->group(base_path('routes/la.php'));

Route::prefix('push')
->middleware('basic_auth')
->namespace($this->namespace)
->group(base_path('routes/push.php'));

Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
Expand Down
13 changes: 0 additions & 13 deletions config/aic.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,6 @@
'access_whitelist_ips' => array_map('trim', explode(',', env('ACCESS_WHITELIST_IPS', ''))),
],

/*
|--------------------------------------------------------------------------
| Basic HTTP Auth
|--------------------------------------------------------------------------
|
| Use the `basic_auth` middleware to secure routes.
|
*/
'basic_auth' => [
'username' => env('BASIC_AUTH_USERNAME'),
'password' => env('BASIC_AUTH_PASSWORD'),
],

/*
|--------------------------------------------------------------------------
| Wait Times
Expand Down
10 changes: 0 additions & 10 deletions routes/push.php

This file was deleted.

0 comments on commit 4b3684d

Please sign in to comment.