```ruby
Sprangular::Engine.routes.draw do
  scope module: 'sprangular' do
    root to: 'home#index'

    scope defaults: {format: :json} do
      post 'facebook/fetch'

      resources :taxonomies, only: :index
      get 'taxons/*permalink', to: 'taxons#show'
      resources :products, only: %i(index show)
      resource :cart do
        post :add_variant
        put :update_variant
        delete :remove_variant
      end
      resource :account
      resources :passwords
      resources :credit_cards
      resources :countries, only: :index
    end
  end
end
```

Add /api to controller path
user
```ruby
Sprangular::Engine.routes.draw do
  scope module: 'sprangular' do
    root to: 'home#index'

    scope '/api', defaults: {format: :json} do
      post 'facebook/fetch'

      resources :taxonomies, only: :index
      get 'taxons/*permalink', to: 'taxons#show'
      resources :products, only: %i(index show)
      resource :cart do
        post :add_variant
        put :update_variant
        delete :remove_variant
      end
      resource :account
      resources :passwords
      resources :credit_cards
      resources :countries, only: :index
    end
  end
end
```
assistant