<?php

require_once APPPATH . '/libraries/Cf_REST_Controller.php';

class AppSettings extends Cf_REST_Controller
{

    function __construct()
    {
        parent::__construct();
        $this->username = $this->session->userdata('username');
        $this->load->model('settings_rest_model');
        $this->settings_rest_model->setRestClient($this->getRestClient());
    }

    function bluehostthreshold_get()
    {
        $this->respond_ok(time_diff_conv($this->settings_rest_model->app_settings_get_item('blueHostHorizon')));
    }

}
