diff --git a/application/controllers/api/v1/Availabilities_api_v1.php b/application/controllers/api/v1/Availabilities_api_v1.php index 60a7e983..a7b5b510 100644 --- a/application/controllers/api/v1/Availabilities_api_v1.php +++ b/application/controllers/api/v1/Availabilities_api_v1.php @@ -24,6 +24,10 @@ class Availabilities_api_v1 extends EA_Controller { { parent::__construct(); + $this->load->library('api'); + + $this->api->auth(); + $this->load->model('appointments_model'); $this->load->model('providers_model'); $this->load->model('services_model'); diff --git a/application/controllers/api/v1/Categories_api_v1.php b/application/controllers/api/v1/Categories_api_v1.php index 9f14c1e5..6793b0c4 100644 --- a/application/controllers/api/v1/Categories_api_v1.php +++ b/application/controllers/api/v1/Categories_api_v1.php @@ -24,8 +24,6 @@ class Categories_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->model('categories_model'); - $this->load->library('api'); $this->api->auth(); diff --git a/application/controllers/api/v1/Customers_api_v1.php b/application/controllers/api/v1/Customers_api_v1.php index 4464e66a..e358dc75 100644 --- a/application/controllers/api/v1/Customers_api_v1.php +++ b/application/controllers/api/v1/Customers_api_v1.php @@ -24,8 +24,6 @@ class Customers_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->model('customers_model'); - $this->load->library('api'); $this->api->auth(); diff --git a/application/controllers/api/v1/Providers_api_v1.php b/application/controllers/api/v1/Providers_api_v1.php index a42a5e4c..97875f81 100644 --- a/application/controllers/api/v1/Providers_api_v1.php +++ b/application/controllers/api/v1/Providers_api_v1.php @@ -24,8 +24,6 @@ class Providers_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->model('providers_model'); - $this->load->library('api'); $this->api->auth(); diff --git a/application/controllers/api/v1/Secretaries_api_v1.php b/application/controllers/api/v1/Secretaries_api_v1.php index fa4cc442..25cc085b 100644 --- a/application/controllers/api/v1/Secretaries_api_v1.php +++ b/application/controllers/api/v1/Secretaries_api_v1.php @@ -24,8 +24,6 @@ class Secretaries_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->model('secretaries_model'); - $this->load->library('api'); $this->api->auth(); diff --git a/application/controllers/api/v1/Services_api_v1.php b/application/controllers/api/v1/Services_api_v1.php index e573834c..80cd4442 100644 --- a/application/controllers/api/v1/Services_api_v1.php +++ b/application/controllers/api/v1/Services_api_v1.php @@ -24,8 +24,6 @@ class Services_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->model('services_model'); - $this->load->library('api'); $this->api->auth(); diff --git a/application/controllers/api/v1/Settings_api_v1.php b/application/controllers/api/v1/Settings_api_v1.php index 4b34aa72..33f029f2 100644 --- a/application/controllers/api/v1/Settings_api_v1.php +++ b/application/controllers/api/v1/Settings_api_v1.php @@ -24,8 +24,6 @@ class Settings_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->model('settings_model'); - $this->load->library('api'); $this->api->auth(); diff --git a/application/controllers/api/v1/Unavailabilities_api_v1.php b/application/controllers/api/v1/Unavailabilities_api_v1.php index 6a6d80c4..eff24060 100644 --- a/application/controllers/api/v1/Unavailabilities_api_v1.php +++ b/application/controllers/api/v1/Unavailabilities_api_v1.php @@ -24,8 +24,6 @@ class Unavailabilities_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->library('api'); - $this->api->auth(); $this->api->model('unavailabilities_model'); diff --git a/application/controllers/api/v1/Webhooks_api_v1.php b/application/controllers/api/v1/Webhooks_api_v1.php index d89ee9e5..0274e585 100644 --- a/application/controllers/api/v1/Webhooks_api_v1.php +++ b/application/controllers/api/v1/Webhooks_api_v1.php @@ -24,8 +24,6 @@ class Webhooks_api_v1 extends EA_Controller { { parent::__construct(); - $this->load->model('webhooks_model'); - $this->load->library('api'); $this->api->auth();