mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 04:39:28 +00:00
34 lines
686 B
PHP
Executable File
34 lines
686 B
PHP
Executable File
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Testing class for REST calls and authentication
|
|
*/
|
|
class Test extends RESTFul_Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
// Loads helper message to manage returning messages
|
|
$this->load->helper('hlp_return_object');
|
|
}
|
|
|
|
/**
|
|
* Test HTTP GET method
|
|
*/
|
|
public function getTest()
|
|
{
|
|
$this->response(success('API HTTP GET call test succeed'), REST_Controller::HTTP_OK);
|
|
}
|
|
|
|
/**
|
|
* Test HTTP POST method
|
|
*/
|
|
public function postTest()
|
|
{
|
|
$this->response(success('API HTTP POST call test succeed'), REST_Controller::HTTP_OK);
|
|
}
|
|
}
|