diff --git a/index.php b/index.php index 9cb4cc2f..6be334f8 100644 --- a/index.php +++ b/index.php @@ -64,7 +64,7 @@ try { $responder = new \StdClass; // 1. try specialized response - if (file_exists('endpoints/'.$pageCall.'/'.$file.'.php')) + if (file_exists('endpoints/'.$pageCall.'/'.$file.'.php') && $pageCall != $file) { require_once 'endpoints/'.$pageCall.'/'.$file.'.php';