<?php
defined('BASEPATH') OR exit('No direct script access allowed');

//==================== ROUTE API ====================

/*
$route['api/users']['GET']          = 'api/UserController/get_all';
$route['api/user/(:num)']['GET']    = 'api/UserController/get/$1';
$route['api/register']['POST']      = 'api/UserController/register';
$route['api/user/(:num)']['PUT']    = 'api/UserController/update/$1';
$route['api/user/(:num)']['DELETE'] = 'api/UserController/delete/$1';
$route['api/login']                 = 'api/UserController/login';
$route['api/check_token']['GET']   				= 'api/UserController/check_token';
*/

$route['api/customer/register']['POST']     	= 'api/CustomerController/register';
$route['api/login']                 			= 'api/CustomerController/login';
$route['api/customer/(:num)']['GET']    		= 'api/CustomerController/get/$1';
$route['api/customer/updateprofile']['POST']   	= 'api/CustomerController/update_profile';
$route['api/customer/changepassword']['POST']   = 'api/CustomerController/change_password';
$route['api/customer/forgetpassword']['POST']   = 'api/CustomerController/forget_password';
$route['api/customer']['GET']          			= 'api/CustomerController/get_all';

$route['api/product/all']['POST']    			= 'api/ProductController/GetAllProduct';
$route['api/product/oldandnew']['GET']    		= 'api/ProductController/GetProductWithoutPromo';
$route['api/product/(:num)']['GET']    		    = 'api/ProductController/Get/$1';
$route['api/productcategory/(:num)']['GET']     = 'api/ProductController/GetProductByCategoryId/$1';

$route['api/outlet']['GET']    					= 'api/OutletController/GetAllOutlet';
$route['api/outlet/(:num)']['GET']    			= 'api/OutletController/get/$1';

$route['api/slider']['GET']    					= 'api/SliderController/GetAllSlider';
$route['api/category']['GET']    				= 'api/CategoryController/GetAllCategory';

$route['default_controller'] = "backend/login";
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
