protected function registerController()
    {
        $config = $this->app['config'];

        $recipes    = $config->get('jitimage::recipes', []);
        $route      = $config->get('jitimage::route', 'image');
        $cacheroute = $config->get('jitimage::cache.route', 'jit/storage');

        $this->registerCacheRoute($cacheroute);

        if (false === $this->registerStaticRoutes($recipes, $route)) {
            $this->registerDynanmicRoute($route);
        }
    }