#36 Add authentication for API; generate API key

This commit is contained in:
Nabeel Shahzad
2017-12-11 22:05:22 -06:00
parent 8a6bba0d0b
commit 0f18e60fd9
12 changed files with 173 additions and 18 deletions

View File

@@ -68,7 +68,7 @@ class RouteServiceProvider extends ServiceProvider
Route::group([
'middleware' => [
'api',
//\App\Http\Middleware\MeasureExecutionTime::class
'api.auth',
],
'namespace' => $this->namespace."\\API",
'prefix' => 'api',