# frozen_string_literal: true

namespace :dashboard do
  root to: 'home#index'
  get :settings, to: 'home#settings'
  get :readings, to: 'home#readings'
  get :authorings, to: 'home#authorings'
  get :stats, to: 'home#stats'
  get :wallet, to: 'home#wallet'

  resources :listed_collections, only: %i[new update]
  resources :hidden_collections, only: %i[new update]
  resources :collections do
    resources :collectings, only: %i[create destroy]
  end
  resources :articles, only: %i[index show], param: :uuid
  resources :published_articles, param: :uuid, only: %i[new update destroy]
  resources :deleted_articles, param: :uuid, only: %i[new update]
  resources :imported_articles, only: %i[new create]

  resources :comments, only: %i[index]
  resources :subscriptions, only: %i[index]
  resources :block_users, only: %i[index]
  resources :subscribe_users, only: %i[index]
  resources :subscribe_articles, only: %i[index]
  resources :subscribe_tags, only: %i[index]
  resources :orders, only: %i[index]
  resources :payments, only: %i[index]
  resources :swap_orders, only: %i[index]
  resources :notifications, only: %i[index show]
  resources :transfers, only: %i[index]
  get '/transfers/stats', to: 'transfers#stats', as: :transfers_stats

  resources :read_notifications, only: %i[new create update]
  resources :deleted_notifications, only: %i[new create]
  resources :notification_settings, only: %i[update]
  resource :profile_setting, only: %i[edit update]

  get 'email_verify', to: 'profile_settings#verify_email'

  resources :access_tokens, only: %i[index create destroy]

  resources :assets, only: %i[index]
  resource :destination, only: %i[show] do
    get :deposit
  end
end
