From 9f1a2b53ae1c2ba76db9333fe48b942b0e4d3a41 Mon Sep 17 00:00:00 2001 From: Tanmay Sharma Date: Mon, 11 Aug 2025 09:08:01 +0530 Subject: [PATCH] assignment_v2: keep routes minimal for assignment policy only (revert other feature routes) --- config/routes.rb | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 81715922c..7fb348084 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -217,33 +217,6 @@ Rails.application.routes.draw do end end - resources :leaves do - member do - post :approve - post :reject - end - end - - # Assignment V2 Routes - resources :assignment_policies - - resources :inboxes, only: [] do - resource :assignment_policy, only: [:show, :create, :destroy], controller: 'inbox_assignment_policies' - end - - # Agent Capacity Management (Enterprise) - resources :agent_capacity_policies do - member do - post 'inbox_limits/:inbox_id', to: 'agent_capacity_policies#set_inbox_limit' - delete 'inbox_limits/:inbox_id', to: 'agent_capacity_policies#remove_inbox_limit' - post 'users', to: 'agent_capacity_policies#assign_user' - delete 'users/:user_id', to: 'agent_capacity_policies#remove_user' - end - end - - # Agent capacity status - get 'agents/:agent_id/capacity', to: 'agent_capacity_policies#agent_capacity' - namespace :twitter do resource :authorization, only: [:create] end @@ -317,6 +290,8 @@ Rails.application.routes.draw do member do patch :archive delete :logo + post :send_instructions + get :ssl_status end resources :categories resources :articles do