WIP new WebAdmin: group page

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-01-14 09:09:42 +01:00
parent 5c8214e121
commit bf94f8b87c
11 changed files with 815 additions and 1120 deletions

View File

@@ -152,6 +152,14 @@ func getI18NErrorString(err error, fallback string) string {
return fallback
}
func getI18nError(err error) *util.I18nError {
var errI18n *util.I18nError
if err != nil {
errI18n = util.NewI18nError(err, util.I18nError500Message)
}
return errI18n
}
func handlePingRequest(w http.ResponseWriter, r *http.Request) {
r.Body = http.MaxBytesReader(w, r.Body, maxRequestSize)
render.PlainText(w, r, "PONG")