This commit is contained in:
2025-11-12 09:41:52 +03:00
commit 2a8566712a
44 changed files with 2602 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package server
import (
"madsky.ru/go-tracker/internal/server/response"
"net/http"
)
func (app *Application) getVersion(w http.ResponseWriter, r *http.Request) {
s, err := app.Storage.ServerSettings.Find(app.Ctx)
if err != nil {
response.Error(w, err, http.StatusBadRequest)
return
}
response.WriteJSON(w, nil, http.StatusOK, &s)
}