Created about page

Created about page with version check and some basic info. Removed footer.
This commit is contained in:
Arminas 2023-01-05 18:38:01 +02:00 committed by GitHub
parent fdb36e4711
commit 185331f10b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 164 additions and 2 deletions

View file

@ -808,3 +808,10 @@ func ApplyServerConfig(db store.IStore, tmplBox *rice.Box) echo.HandlerFunc {
return c.JSON(http.StatusOK, jsonHTTPResponse{true, "Applied server config successfully"})
}
}
// AboutPage handler
func AboutPage() echo.HandlerFunc {
return func(c echo.Context) error {
return c.Render(http.StatusOK, "about.html", map[string]interface{}{})
}
}