From efadc31f82cbd9279058d85fe5d95642b76faa63 Mon Sep 17 00:00:00 2001 From: Joshua Wehner Date: Mon, 24 Apr 2023 14:16:53 +0200 Subject: [PATCH] Refactor 'controller:' to 'to:' in routes (#19383) --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index c40a3a6bf..c712a81b6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -187,8 +187,8 @@ Rails.application.routes.draw do get "/social_previews/article/:id", to: "social_previews#article", as: :article_social_preview - get "/async_info/base_data", controller: "async_info#base_data", defaults: { format: :json } - get "/async_info/navigation_links", controller: "async_info#navigation_links" + get "/async_info/base_data", to: "async_info#base_data", defaults: { format: :json } + get "/async_info/navigation_links", to: "async_info#navigation_links" # Display ads scope "/:username/:slug" do