Changed Health API to be public
This commit is contained in:
parent
74cd2a192f
commit
9f9cc2692b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue