intitial work on rest api

This commit is contained in:
Nabeel Shahzad
2017-08-14 18:26:20 -05:00
parent e19b84a078
commit bc94772ce2
10 changed files with 179 additions and 11 deletions

View File

@@ -66,7 +66,10 @@ class RouteServiceProvider extends ServiceProvider
protected function mapApiRoutes()
{
Route::group([
'middleware' => 'api',
'middleware' => [
'api',
\App\Http\Middleware\MeasureExecutionTime::class
],
'namespace' => $this->namespace."\\API",
'prefix' => 'api',
'as' => 'api.',