fix: allow v7 as an API version

This commit is contained in:
Phan An 2024-06-21 13:18:34 +02:00
parent 60b32eb7d3
commit a53c9df893

View file

@ -39,7 +39,7 @@ class RouteServiceProvider extends ServiceProvider
$version = app()->runningUnitTests() ? env('X_API_VERSION') : request()->header('X-Api-Version');
if ($version) {
Assert::oneOf($version, ['v6']);
Assert::oneOf($version, ['v6', 'v7']);
}
return $version;