Added v1 for first version controllers.
This commit is contained in:
parent
2afe0b903b
commit
550cee6765
2 changed files with 42 additions and 0 deletions
32
src/application/controllers/api/v1/Appointments.php
Normal file
32
src/application/controllers/api/v1/Appointments.php
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* Easy!Appointments - Open Source Web Scheduler
|
||||||
|
*
|
||||||
|
* @package EasyAppointments
|
||||||
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||||
|
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||||
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||||
|
* @link http://easyappointments.org
|
||||||
|
* @since v1.2.0
|
||||||
|
* ---------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appointments Controller
|
||||||
|
*
|
||||||
|
* @package Controllers
|
||||||
|
* @subpackage API
|
||||||
|
*/
|
||||||
|
class Appointments extends CI_Controller {
|
||||||
|
|
||||||
|
public function get($id = null) {
|
||||||
|
echo 'hello ' . $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function post() {
|
||||||
|
echo 'post';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* End of file appointments.php */
|
||||||
|
/* Location: ./application/controllers/appointments.php */
|
10
src/application/controllers/api/v1/index.html
Normal file
10
src/application/controllers/api/v1/index.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue