Rails.application.routes.draw do
  resources :login, only: :create

  get '/profile', to: 'profile#show'
  get '/profile/posts', to: 'profile#posts'
  get '/profile/likes', to: 'profile#likes'

  resources :restaurants, only: [:index, :create, :show, :update] do
    resources :comments, only: :create
    resources :likes, only: :create
  end

  resources :cuisines, only: [:index, :create]
end
