Moved to version 0 of the api for release

This commit is contained in:
laf
2014-09-17 18:49:04 +01:00
parent e81ce9ff60
commit d40244cb06
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
RewriteRule ^api/v1/(.*)$ api_v1.php/$1 [L]
RewriteRule ^api/v0/(.*)$ api_v0.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)

View File

@ -28,7 +28,7 @@ require_once("includes/api_functions.inc.php");
$app->setName('api');
$app->group('/api', function() use ($app) {
$app->group('/v1', function() use ($app) {
$app->group('/v0', function() use ($app) {
$app->group('/devices', function() use ($app) {
$app->get('/:hostname/ports/:ifname/:type', 'authToken', 'get_graph_by_port_hostname');//api/v1/devices/$hostname/ports/$ifName/$type
$app->get('/:hostname/:type', 'authToken', 'get_graph_generic_by_hostname');//api/v1/devices/$hostname/$type