Rails.application.routes.draw do
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
  root 'characters#index'
  get '/characters' => 'characters#index'

  post '/signup' => 'users#create'
  post '/login' => 'auth#create'
  get '/user' => 'users#user'
  get '/notes' => 'character_notes#index'
  get '/games' => 'games#index'
  post '/bullet_points/new' => 'bullet_points#create'
  get '/:game/:character/notes' => 'character_notes#show'
  get '/:game/:character/:opponent/notes' => 'matchup_notes#show'
  delete '/bullet_points/:id/delete' => 'bullet_points#destroy'
  delete '/character_notes/:id/delete' => 'character_notes#destroy'
  delete '/matchup_notes/:id/delete' => 'matchup_notes#destroy'
  post 'character_notes/new' => 'character_notes#create'
  post 'matchup_notes/new' => 'matchup_notes#create'
end
