Rails.application.routes.draw do
  require 'sidekiq/web'

  devise_for :users

  namespace :api do
    namespace :v1 do
      mount_devise_token_auth_for 'User', at: 'users', skip: [:omniauth_callbacks]
      resources :users, only: [:show]
    end
  end

  # map views
  get 'maps/fires' => 'maps#fires'
  get 'maps/windy' => 'maps#windy'
  get 'maps/forests' => 'maps#forests'
  get 'maps/protected_areas' => 'maps#protected_areas'
  get 'maps/weather_perspective' => 'maps#weather_perspective'

  # modis data
  #get 'modis_data/fires' => 'modis_data#fires'
  post 'modis_data/fires' => 'modis_data#fires'

  resources :reports

  require 'sidekiq/web'
  require 'sidekiq/cron/web'
  mount Sidekiq::Web => '/sidekiq'

end

Rails.application.routes.draw do
  require 'sidekiq/web'

  devise_for :users

  namespace :api do
    namespace :v1 do
      mount_devise_token_auth_for 'User', at: 'users', skip: [:omniauth_callbacks]
    end
  end

  resources :users, only: [:show]

  # map views
  get 'maps/fires' => 'maps#fires'
  get 'maps/windy' => 'maps#windy'
  get 'maps/forests' => 'maps#forests'
  get 'maps/protected_areas' => 'maps#protected_areas'
  get 'maps/weather_perspective' => 'maps#weather_perspective'

  # modis data
  #get 'modis_data/fires' => 'modis_data#fires'
  post 'modis_data/fires' => 'modis_data#fires'

  resources :reports

  require 'sidekiq/web'
  require 'sidekiq/cron/web'
  mount Sidekiq::Web => '/sidekiq'

end

Remove api namespace from user resources path.
Remove api namespace from user resources path.
