public static function run(App $cdl, string $method, Slim $app, Type $type, array $routes): void{
        foreach ($routes as $options) {
            if (isset($options['action']) && $cdl->hasRoute($method, $options['action'])) {
                $route = $cdl->getRoute($method, $options['action']);
                self::hookRoute($cdl, $app, new $route($cdl, $type, $options), $method);
            } else {
                self::hookError($cdl, $app, $method, $options);
            }
        }
    }