```ruby
Rails.application.routes.draw do

  root 'static_pages#index'
  get 'help' => 'static_pages#help'
  get 'about' => 'static_pages#about'
  resources :topics, :only => [:index, :show, :new, :create, :update, :destroy]
  get '/topics/:id/:edit_key' => 'topics#edit', as: 'edit_topic'
  post '/topics/search' => 'topics#search'
  get '/sessions/new' => 'sessions#new', as: 'new_session'
  post '/sessions' => 'sessions#create'
  delete '/sessions' => 'sessions#destroy'
  resources :users, :except => :index
  resources :questions
  resources :comments, :only => [:create, :update, :destroy]

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

end
```

Add upvote route to questions
user
```ruby
Rails.application.routes.draw do

  root 'static_pages#index'
  get 'help' => 'static_pages#help'
  get 'about' => 'static_pages#about'
  resources :topics, :only => [:index, :show, :new, :create, :update, :destroy]
  get '/topics/:id/:edit_key' => 'topics#edit', as: 'edit_topic'
  post '/topics/search' => 'topics#search'
  get '/sessions/new' => 'sessions#new', as: 'new_session'
  post '/sessions' => 'sessions#create'
  delete '/sessions' => 'sessions#destroy'
  resources :users, :except => :index
  resources :questions
  resources :comments, :only => [:create, :update, :destroy]
  resources :questions do
    member do
      put "like", to: "questions#upvote"
    end
  end

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

end
```
assistant