Rails.application.routes.draw do
  scope format: false do |r|
    put "/draft-content(/*base_path)", to: "content_items#put_draft_content_item"
    put "/content(/*base_path)", to: "content_items#put_live_content_item"

    put "/publish-intent(/*base_path)", to: "publish_intents#create_or_update"
    get "/publish-intent(/*base_path)", to: "publish_intents#show"
    delete "/publish-intent(/*base_path)", to: "publish_intents#destroy"

    namespace :v2 do
      put "/content/:content_id", to: "content_items#put_content"
      get "/content/:content_id", to: "content_items#show"
    end
  end

  post '/v2/content/:content_id/publish', to: 'content_items#publish'

  get '/healthcheck', :to => proc { [200, {}, ['OK']] }
end

Rails.application.routes.draw do
  scope format: false do |r|
    put "/draft-content(/*base_path)", to: "content_items#put_draft_content_item"
    put "/content(/*base_path)", to: "content_items#put_live_content_item"

    put "/publish-intent(/*base_path)", to: "publish_intents#create_or_update"
    get "/publish-intent(/*base_path)", to: "publish_intents#show"
    delete "/publish-intent(/*base_path)", to: "publish_intents#destroy"

    namespace :v2 do
      put "/content/:content_id", to: "content_items#put_content"
      get "/content/:content_id", to: "content_items#show"
    end

    post '/v2/content/:content_id/publish', to: 'content_items#publish'
  end

  get '/healthcheck', :to => proc { [200, {}, ['OK']] }
end

Use a scope declaration to disallow the format variant
Use a scope declaration to disallow the format variant
