This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/public/router.php
2016-01-30 01:18:23 +01:00

19 lines
407 B
PHP

<?php
/*
* Sakura Router
*/
// Declare Namespace
namespace Sakura;
// Include components
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) . 'sakura.php';
if (!Config::local('dev', 'show_changelog') || !Config::local('dev', 'show_errors')) {
exit;
}
Router::setBasePath('/router.php');
// Handle requests
echo Router::handle($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);