Correct the API controller constructor methods.
This commit is contained in:
parent
7ffc249706
commit
f13b1a17c4
9 changed files with 4 additions and 16 deletions
|
@ -24,6 +24,10 @@ class Availabilities_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
|
$this->load->library('api');
|
||||||
|
|
||||||
|
$this->api->auth();
|
||||||
|
|
||||||
$this->load->model('appointments_model');
|
$this->load->model('appointments_model');
|
||||||
$this->load->model('providers_model');
|
$this->load->model('providers_model');
|
||||||
$this->load->model('services_model');
|
$this->load->model('services_model');
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Categories_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->model('categories_model');
|
|
||||||
|
|
||||||
$this->load->library('api');
|
$this->load->library('api');
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Customers_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->model('customers_model');
|
|
||||||
|
|
||||||
$this->load->library('api');
|
$this->load->library('api');
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Providers_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->model('providers_model');
|
|
||||||
|
|
||||||
$this->load->library('api');
|
$this->load->library('api');
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Secretaries_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->model('secretaries_model');
|
|
||||||
|
|
||||||
$this->load->library('api');
|
$this->load->library('api');
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Services_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->model('services_model');
|
|
||||||
|
|
||||||
$this->load->library('api');
|
$this->load->library('api');
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Settings_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->model('settings_model');
|
|
||||||
|
|
||||||
$this->load->library('api');
|
$this->load->library('api');
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Unavailabilities_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->library('api');
|
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
||||||
$this->api->model('unavailabilities_model');
|
$this->api->model('unavailabilities_model');
|
||||||
|
|
|
@ -24,8 +24,6 @@ class Webhooks_api_v1 extends EA_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->model('webhooks_model');
|
|
||||||
|
|
||||||
$this->load->library('api');
|
$this->load->library('api');
|
||||||
|
|
||||||
$this->api->auth();
|
$this->api->auth();
|
||||||
|
|
Loading…
Reference in a new issue