public function registerApi()
  {
    $this->app['api'] = $this->app->share(function ($app) {
      $config = $app['config']->get('sule/api::config');
      $config['oauth2'] = $app['config']->get('sule/api::oauth2');

      return new Api($config, $app['request'], new Response(), $app['api.authorization'], $app['api.resource']);
    });
  }