src/Direct/DirectServiceProvider.php
public function boot(Application $app)
    {
        // the direct api route
        $app->get('/api.js', function(Application $app){
            return $app['direct.api']->getApi();
        })->bind('directapi');

        // the direct api route remoting description
        $app->get('/remoting.js', function(Application $app){
            return $app['direct.api']->getRemoting();
        });

        // the direct router route
        $app->post('/route', function(Application $app){
            // handle the route
            return $app['direct.router']->route();
        });
    }
public function boot(Application $app)
    {
        // the direct api route
        $app->get('/api.js', function(Application $app){
            return $app['direct.api']->getApi();
        })->bind('directapi');

        // the direct api route remoting description
        $app->get('/remoting.js', function(Application $app){
            return $app['direct.api']->getRemoting();
        });

        // the direct router route
        $app->post('/route', function(Application $app){
            // handle the route
            return $app['direct.router']->route();
        });
    }
public function boot ( Application $ app ) { // the direct api route $ app -> get ( '/api.js' , function ( Application $ app ) { return $ app [ 'direct.api' ] -> getApi ( ) ; } ) -> bind ( 'directapi' ) ; // the direct api route remoting description $ app -> get ( '/remoting.js' , function ( Application $ app ) { return $ app [ 'direct.api' ] -> getRemoting ( ) ; } ) ; // the direct router route $ app -> post ( '/route' , function ( Application $ app ) { // handle the route return $ app [ 'direct.router' ] -> route ( ) ; } ) ; }
Setup the application.

@param Application $app
Setup the application .