Files
spa-api/app/Providers/RouteServiceProvider.php

47 lines
1005 B
PHP
Raw Normal View History

2014-08-20 00:10:30 -05:00
<?php namespace App\Providers;
2014-08-11 10:13:20 -05:00
use Illuminate\Routing\Router;
2014-09-30 21:13:58 -05:00
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
2014-08-11 10:13:20 -05:00
class RouteServiceProvider extends ServiceProvider {
/**
* All of the application's route middleware keys.
*
* @var array
*/
protected $middleware = [
2014-10-20 16:46:56 -05:00
'auth' => 'App\Http\Middleware\Authenticated',
'auth.basic' => 'App\Http\Middleware\AuthenticatedWithBasicAuth',
2014-10-20 16:45:39 -05:00
'guest' => 'App\Http\Middleware\IsGuest',
];
2014-08-11 10:13:20 -05:00
/**
* Called before routes are registered.
*
* Register any model bindings or pattern based filters.
*
2014-10-15 13:35:10 +01:00
* @param \Illuminate\Routing\Router $router
2014-08-11 10:13:20 -05:00
* @return void
*/
2014-10-14 20:07:12 -05:00
public function before(Router $router)
2014-08-11 10:13:20 -05:00
{
2014-10-14 20:07:12 -05:00
//
2014-08-11 10:13:20 -05:00
}
/**
* Define the routes for the application.
*
2014-10-15 13:35:10 +01:00
* @param \Illuminate\Routing\Router $router
2014-08-11 10:13:20 -05:00
* @return void
*/
2014-10-14 20:07:12 -05:00
public function map(Router $router)
2014-08-11 10:13:20 -05:00
{
2014-11-02 10:02:20 -06:00
$router->group(['namespace' => 'App\Http\Controllers'], function($router)
{
require app_path('Http/routes.php');
});
2014-08-11 10:13:20 -05:00
}
}