diff --git a/LittleShop/LittleShop.csproj b/LittleShop/LittleShop.csproj
index aaec2df..17ce1c0 100644
--- a/LittleShop/LittleShop.csproj
+++ b/LittleShop/LittleShop.csproj
@@ -5,6 +5,9 @@
enable
enable
b96bedcb-5d39-4d41-98c0-72355dd49c1b
+ 1.0.5
+ 1.0.5.0
+ 1.0.5.0
diff --git a/LittleShop/Program.cs b/LittleShop/Program.cs
index 2b611eb..ed042d2 100644
--- a/LittleShop/Program.cs
+++ b/LittleShop/Program.cs
@@ -280,6 +280,19 @@ app.MapHub("/activityHub");
// Health check endpoint
app.MapHealthChecks("/health");
+// Version endpoint
+app.MapGet("/api/version", () =>
+{
+ var version = typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0";
+ var assemblyVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "1.0.0";
+ return Results.Ok(new
+ {
+ version = assemblyVersion,
+ environment = builder.Environment.EnvironmentName,
+ application = "LittleShop"
+ });
+});
+
// Apply database migrations and seed data
using (var scope = app.Services.CreateScope())
{