feat: New APIs for search (#6564)

- Adding new API endpoints for search
- Migrations to add appropriate indexes
This commit is contained in:
Sojan Jose
2023-02-28 22:00:36 +05:30
committed by GitHub
parent 9bd47588fc
commit d4e7eaecce
18 changed files with 423 additions and 5 deletions

View File

@@ -96,6 +96,14 @@ Rails.application.routes.draw do
end
end
resources :search, only: [:index] do
collection do
get :conversations
get :messages
get :contacts
end
end
resources :contacts, only: [:index, :show, :update, :create, :destroy] do
collection do
get :active