Added sample API routes into the project (will be updated soon).
This commit is contained in:
parent
52f592c027
commit
39b79d8824
1 changed files with 17 additions and 1 deletions
|
@ -42,5 +42,21 @@ $route['default_controller'] = "appointments";
|
||||||
$route['404_override'] = 'errors/error404';
|
$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 */
|
/* End of file routes.php */
|
||||||
/* Location: ./application/config/routes.php */
|
/* Location: ./application/config/routes.php */
|
Loading…
Reference in a new issue