summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-08 20:59:41 +0200
committerxengineering <me@xengineering.eu>2024-05-08 20:59:41 +0200
commit5a09313066f5594ca9e3917c00821e443dcba7bc (patch)
treef1fd26e3e1b89e1d6cce28191716d8a2f19b5ea5 /server.go
parent0368b6d0f7069be078ca6dba2c8bb3ed06d9f03a (diff)
downloadceres-5a09313066f5594ca9e3917c00821e443dcba7bc.tar
ceres-5a09313066f5594ca9e3917c00821e443dcba7bc.tar.zst
ceres-5a09313066f5594ca9e3917c00821e443dcba7bc.zip
Rename gitDescribe to version
This variable will be the only used representation for version information. It can trivially be used for an equality check. Further data as semantic versioning must be parsed from this string.
Diffstat (limited to 'server.go')
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index 32d22b1..570d8ed 100644
--- a/server.go
+++ b/server.go
@@ -25,7 +25,7 @@ func NewServer(addr string) Server {
r.PathPrefix("/static/").
Handler(http.StripPrefix("/static/", http.FileServer(http.FS(static))))
- r.HandleFunc("/version", view.VersionRead(gitDescribe)).Methods(`GET`)
+ r.HandleFunc("/version", view.VersionRead(version)).Methods(`GET`)
r.HandleFunc("/recipes", view.RecipesRead).Methods(`GET`)