diff --git a/Controllers/APIController.cs b/Controllers/APIController.cs index f56c841..92bc258 100644 --- a/Controllers/APIController.cs +++ b/Controllers/APIController.cs @@ -112,6 +112,13 @@ namespace CarCareTracker.Controllers } } [HttpGet] + [Route("/api/version")] + public IActionResult ServerVersion() + { + var serverVersion = StaticHelper.VersionNumber; + return Json(serverVersion); + } + [HttpGet] [Route("/api/vehicles")] public IActionResult Vehicles() { diff --git a/Helper/StaticHelper.cs b/Helper/StaticHelper.cs index 6c9a197..7020753 100644 --- a/Helper/StaticHelper.cs +++ b/Helper/StaticHelper.cs @@ -12,7 +12,7 @@ namespace CarCareTracker.Helper /// public static class StaticHelper { - public const string VersionNumber = "1.4.7"; + public const string VersionNumber = "1.4.8"; public const string DbName = "data/cartracker.db"; public const string UserConfigPath = "data/config/userConfig.json"; public const string LegacyUserConfigPath = "config/userConfig.json";