diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index f5f5072b..98588967 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -48,6 +48,7 @@ class ServerInotify extends Process Event::wait(); } else { $this->loadByDir(APP_PATH . 'app'); + $this->loadByDir(APP_PATH . 'routes'); Timer::tick(2000, [$this, 'tick']); } } @@ -62,6 +63,7 @@ class ServerInotify extends Process public function tick() { $this->loadByDir(APP_PATH . 'app', true); + $this->loadByDir(APP_PATH . 'routes', true); }