This commit is contained in:
liumengyi
2022-08-24 10:54:29 +08:00
parent 00ada6310a
commit e1a022ba7f
8 changed files with 7 additions and 15 deletions
+1 -5
View File
@@ -191,11 +191,7 @@ class api extends router
public function loadModule()
{
/* If the version of api don't exists, call parent method. */
if(!$this->version)
{
parent::setParams();
return parent::loadModule();
}
if(!$this->version) return parent::loadModule();
$entry = strtolower($this->entry);
include($this->appRoot . "api/$this->version/entries/$entry.php");