routes; } if ( isset( $this->routes[ $route_path ] ) ) { return $this->routes[ $route_path ]; } } public function register( Route_Interface $instance ) { $this->routes[ $instance::get_name() ] = $instance; } public function _rest_init() { new Modules_Get(); new Modules_Post(); new Services_Get(); new Services_Post(); new Stats_Get(); new Stats_Create(); new Stats_Delete(); new Chatbots_Get(); new Chatbots_Post(); } public static function instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } }