update to support postgresql and add godocs
This commit is contained in:
@@ -5,7 +5,14 @@ import (
|
||||
"vctp/components/views"
|
||||
)
|
||||
|
||||
// Home handles the home page.
|
||||
// Home renders the web UI home page.
|
||||
// @Summary Home page
|
||||
// @Description Renders the main UI page.
|
||||
// @Tags ui
|
||||
// @Produce text/html
|
||||
// @Success 200 {string} string "HTML page"
|
||||
// @Failure 500 {string} string "Render failed"
|
||||
// @Router / [get]
|
||||
func (h *Handler) Home(w http.ResponseWriter, r *http.Request) {
|
||||
//h.html(r.Context(), w, http.StatusOK, core.HTML("Example Site", home.Home()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user