Lassi\Lassi::loadRoutes PHP Method

loadRoutes() private static method

Load framework app routes
private static loadRoutes ( ) : void
return void
    private static function loadRoutes()
    {
        $routes = dirname(__FILE__) . '/../routes.php';
        if (!file_exists($routes) || !is_readable($routes)) {
            throw new NotFoundException('Routes not found.');
        }
        // Get Slim instance
        $app = Lassi::getInstance()->getApp();
        require_once $routes;
    }