chore: Add Contact Note APIs (#3266)

This commit is contained in:
Sojan Jose
2021-10-24 12:40:30 +05:30
committed by GitHub
parent 19855a90e2
commit 06289b03ea
13 changed files with 191 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
class Api::V1::Accounts::Contacts::BaseController < Api::V1::Accounts::BaseController
before_action :ensure_contact
private
def ensure_contact
@contact = Current.account.contacts.find(params[:contact_id])
end
end