Get services from API

/services = list all services
/services/:hostname = get services by host
This commit is contained in:
nerdalertdk
2016-08-26 09:17:01 +02:00
committed by GitHub
parent 9c3d398b63
commit d26a1ff2a8

View File

@@ -154,6 +154,15 @@ $app->group(
}
);
// End Resources
// Service section
$app->group(
'/services',
function () use ($app) {
$app->get('/:hostname', 'authToken', 'list_services')->name('get_service_for_host');
}
);
$app->get('/services', 'authToken', 'list_services')->name('list_services');
// End Service
}
);
$app->get('/v0', 'authToken', 'show_endpoints');