canax/router

View on GitHub
config/router.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use Anax\Route\Router;

/**
 * Configuration file for routes.
 */
return [
    //"mode" => Router::DEVELOPMENT, // default, verbose execeptions
    //"mode" => Router::PRODUCTION,  // exceptions turn into 500

    // Path where to mount the routes, is added to each route path.
    "mount" => null,

    // Load routes in order, start with these and the those found in
    // router/*.php.
    "routes" => [
        // [
        //     "info" => "Just say hi.",
        //     "method" => null,
        //     "path" => "",
        //     "handler" => function () {
        //         return ["Anax: Just saying Hi!", 200];
        //     },
        // ],
    ],
];