Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 541 Bytes

File metadata and controls

38 lines (23 loc) · 541 Bytes

endpoint

Simple

const ROOT = __DIR__;

include ROOT . "/vendor/autoload.php";

framework\Nano::load([
    require ROOT . "/config/common.php",
    require ROOT . "/config/web.php"
])->run();

With Exception.

const ROOT = __DIR__;

try {

    include ROOT . "/vendor/autoload.php";

    framework\Nano::load([
        require ROOT . "/config/common.php",
        require ROOT . "/config/web.php"
    ])->run();

} catch ( Exception $e ) {

    echo '<h2>Nano  exception.</h2><hr>' . $e->getMessage();
}