Change our negative response formats

This commit is contained in:
Deon George 2023-03-03 15:31:18 +11:00
parent ae113662db
commit 5b1ce7a31a

View File

@ -61,7 +61,7 @@ class VersionController extends Controller
: ['action'=>'upgrade','version'=>sprintf('v%s-%s-%s',$matches[1],$matches[3],$current->short_id)];
} else
$response = ['action'=>'unknown','version'=>'vn.n.n-dev-hhhhhhhh'];
$response = ['action'=>'unable','version'=>'vn.n.n-dev-hhhhhhhh'];
break;
@ -98,7 +98,7 @@ class VersionController extends Controller
$response = ['action'=>'unknown','version'=>$repository];
} else
$response = ['action'=>'unknown','version'=>'vn.n.n-rel-hhhhhhhh'];
$response = ['action'=>'unable','version'=>'vn.n.n-rel-hhhhhhhh'];
break;
}
@ -110,7 +110,7 @@ class VersionController extends Controller
}
// Return the current version
return ['action'=>'unknown','version'=>'vn.n.n-xxxx-hhhhhhhh'];
return ['action'=>'invalid','version'=>'vn.n.n-xxxx-hhhhhhhh'];
}
public function getUserIpAddr(): string