feat: Introduce application version display in the frontend footer, showing both frontend and backend versions with integrated build arguments.
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m29s

This commit is contained in:
almazlar
2026-02-21 10:34:08 +03:00
parent bbd3beb22a
commit 37ae9dbe53
7 changed files with 91 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
package com.todo.backend.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/api/version")
public class VersionController {
@Value("${APP_VERSION:dev}")
private String appVersion;
@GetMapping
public ResponseEntity<Map<String, String>> getVersion() {
Map<String, String> response = new HashMap<>();
response.put("version", appVersion);
return ResponseEntity.ok(response);
}
}