private static function hookRoute(App $cdl, Slim $app, Route $route, string $method){
        $options = $route->getOptions();
        $routing = $app->{$method}($options['url'], System::jsonResponse(function (Request $request, Response $response, array $args) use ($route){
            return $route->dispatch($request, $response, $args);
        }));
        self::applyMiddleware($cdl, $options, $routing);
    }