From 550cee676571273d733d59957186ecc5d65406e0 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 7 Jul 2016 22:05:10 +0200 Subject: [PATCH] Added v1 for first version controllers. --- .../controllers/api/v1/Appointments.php | 32 +++++++++++++++++++ src/application/controllers/api/v1/index.html | 10 ++++++ 2 files changed, 42 insertions(+) create mode 100644 src/application/controllers/api/v1/Appointments.php create mode 100644 src/application/controllers/api/v1/index.html diff --git a/src/application/controllers/api/v1/Appointments.php b/src/application/controllers/api/v1/Appointments.php new file mode 100644 index 00000000..ffa6a3b2 --- /dev/null +++ b/src/application/controllers/api/v1/Appointments.php @@ -0,0 +1,32 @@ + + * @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 */ diff --git a/src/application/controllers/api/v1/index.html b/src/application/controllers/api/v1/index.html new file mode 100644 index 00000000..c942a79c --- /dev/null +++ b/src/application/controllers/api/v1/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file