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

class SettingsApi extends Cf_REST_Controller
{

    public function __construct()
    {
        parent::__construct();
        $this->load->model('vcsSettingsModel');
    }

    public function clearVCS_post()
    {
        try {
            $this->vcsSettingsModel->deleteSettings();
            $this->respond(204);
        } catch (Exception $e) {
            $message = $e->getMessage();
            log_message('error', $message);
            $this->respond(500, $message);
        }
    }

}
