test-php-rest-api-user/engine/core/route.php

6 lines
175 B
PHP

<?php
if(__URI__ == '/' || in_array(__URL__[0], ['index', 'route']))
Root::url('/main');
elseif(file_exists(__CD__.__URL__[0].'.php'))
require __CD__.__URL__[0].'.php';