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

35 lines
558 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\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider {
/**
* Called before routes are registered.
*
* Register any model bindings or pattern based filters.
*
* @return void
*/
public function before()
{
//
}
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
2014-08-12 16:21:45 -05:00
$this->app->booted(function()
{
2014-08-20 00:10:30 -05:00
$this->namespaced(function()
{
require app('path').'/Http/routes.php';
});
2014-08-12 16:21:45 -05:00
});
2014-08-11 10:13:20 -05:00
}
}