Added sample API routes into the project (will be updated soon).

This commit is contained in:
Alex Tselegidis 2016-07-06 22:12:48 +02:00
parent 52f592c027
commit 39b79d8824
1 changed files with 17 additions and 1 deletions

View File

@ -42,5 +42,21 @@ $route['default_controller'] = "appointments";
$route['404_override'] = 'errors/error404';
/*
| -------------------------------------------------------------------------
| REST API ROUTING
| -------------------------------------------------------------------------
| The following routes will point the API calls into the correct controller
| callback methods. This routes also define the HTTP verbs that they are
| used for each operation.
|
*/
$route['api/appointments']['get'] = 'api/appointments/get/$1';
$route['api/appointments']['post'] = 'api/appointments/insert';
$route['api/appointments']['put'] = 'api/appointments/update/$1';
$route['api/appointments']['delete'] = 'api/appointments/delete/$1';
/* End of file routes.php */
/* Location: ./application/config/routes.php */