Base d'un site web v2

This commit is contained in:
Sanchez
2017-04-17 23:05:15 +02:00
committed by mathieu
parent e761ff7c5a
commit ec9eb79038
21 changed files with 143 additions and 103 deletions

View File

@ -32,7 +32,6 @@ if (count($pages) > 1 && $pages[count($pages) - 1] == '')
exit();
}
if ($pages[0] == 'api' && isset($pages[1]) && preg_match('#^([a-z]+)$#', $pages[1], $api1) && isset($pages[2]) && preg_match('#^([a-z-]+)$#', $pages[2], $api2)) {
new APIRouter($api1[0], $api2[0]);