From 02f4ca0053def768b50d6e23d2f08f4057f084cb Mon Sep 17 00:00:00 2001 From: NangKhatMang Date: Thu, 4 Sep 2025 13:24:44 +0630 Subject: [PATCH] modify: api 'custom_menus/display' --- config/routes/api_v1.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/routes/api_v1.rb b/config/routes/api_v1.rb index 35c44bb5..4064dc80 100644 --- a/config/routes/api_v1.rb +++ b/config/routes/api_v1.rb @@ -11,9 +11,11 @@ result = case app_name when 'patchwork' - { display: true, app_name: 'patchwork' } + { display: false, app_name: 'patchwork' } when 'newsmast' { display: true, app_name: 'newsmast' } + when 'channel' + { display: true, app_name: 'channel' } when 'mo-me' { display: true, app_name: 'mo-me' } else @@ -123,7 +125,7 @@ get 'translations/:namespace', to: 'locales#translations', as: :translations end end - + resources :statuses, only: [] do collection do post :boost_post