feat: added /version endpoint

This commit is contained in:
2026-09-01 16:42:40 +02:00
parent b17c2b6670
commit 19ad59ac30
3 changed files with 35 additions and 4 deletions
+5 -2
View File
@@ -136,8 +136,11 @@ func setupLogging() {
func makeServer(db *sql.DB, cfg *config.Config) *http.Server {
routerConfig := router.Config{
Database: db,
JWTSecret: cfg.JWTSecret,
Database: db,
JWTSecret: cfg.JWTSecret,
ServiceVersion: Version,
ServiceCommit: Commit,
ServiceBuildTime: BuildTime,
}
mux := router.NewMux(routerConfig)