Versionning

This commit is contained in:
Paul Schneider 2022-04-17 14:48:18 +01:00
commit 217cc49019
5 changed files with 16 additions and 11 deletions

View file

@ -23,8 +23,6 @@ namespace isnd.Controllers
public partial class PackagesController : Controller
{
const int maxTake = 100;
const string defaultSemVer = "2.0.0";
private readonly Resource[] _resources;
private readonly ILogger<PackagesController> _logger;
private readonly IDataProtector _protector;
@ -55,7 +53,7 @@ namespace isnd.Controllers
[HttpGet(_pkgRootPrefix + ApiConfig.Base)]
public IActionResult ApiIndex()
{
return Ok(new ApiIndexViewModel{ Version = "3.0.0", Resources = _resources });
return Ok(new ApiIndexViewModel{ Version = PackageManager.BASE_API_LEVEL, Resources = _resources });
}
}