I am creating rest api using codeigniter and want to use function but after hit "http://localhost/codeigniter-rest-api-master/api/testing" showing me error "404 page not found".Where i am wrong ?
here is my "application/config/routes.php"
$route['api'] = 'api/users/';
//api/users
$route['api/users'] = 'api/testing/testing/';
$route['api/users/format/json'] = 'api/testing/testing/format/json';
$route['api/users/format/xml'] = 'api/testing/testing/format/xml';
$route['api/users/format/html'] = 'api/testing/testing/format/html';
$route['api/users/format/csv'] = 'api/testing/users/format/csv';
$route['api/users.json'] = 'api/testing/testing.json';
$route['api/users.xml'] = 'api/testing/testing.xml';
$route['api/users.html'] = 'api/testing/testing.html';
$route['api/users.csv'] = 'api/testing/testing.csv';
here is my "application/controller/api/Users.php"
public function testing()
{
echo "hello world";
}