Rails.application.routes.draw do
  get 'static_pages/home'
  #get 'static_pages/buy'
  get '/comprar', to: 'static_pages#buy', as: 'buy_static_pages'
  #get 'static_pages/info'
  get '/info', to: 'static_pages#info', as: 'info_static_pages'


  resources :grabados
  resources :collections
  #resources :artists, param: :slug
  get '/artists', to: 'artists#index'
  get '/:artist_slug', to: 'artists#show'
  get '/:artist_slug/:page', to: 'artists#show'
  get '/:artist_slug/:page/:available', to: 'artists#show'
  # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html

  # Defines the root path route ("/")
  root "static_pages#home"
end
