This commit is contained in:
2026-03-06 17:45:02 +03:00
commit d6e833bc9f
57 changed files with 2682 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)
}