1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Changed Health API to be public

This commit is contained in:
Eldad Fux 2020-05-01 13:07:53 +03:00
parent 74cd2a192f
commit 9f9cc2692b
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ $utopia->init(function () use ($utopia, $request, $response, &$user, $project, $
$route = $utopia->match($request);
if(!empty($route->getLabel('sdk.platform', [])) && empty($project->getId())) {
if(!empty($route->getLabel('sdk.platform', [])) && empty($project->getId()) && ($route->getLabel('scope', '') !== 'public')) {
throw new Exception('Missing or unknown project ID', 400);
}

View file

@ -9,7 +9,7 @@ use Appwrite\ClamAV\Network;
$utopia->get('/v1/health')
->desc('Check API HTTP Health')
->label('scope', 'health.read')
->label('scope', 'public')
->label('sdk.platform', [APP_PLATFORM_SERVER])
->label('sdk.namespace', 'health')
->label('sdk.method', 'get')