bottin/v4/web/webhandlers/handlers.go
Victor Lacasse-Beaudoin 3aa7faa2f6 [WIP] Add web client
Ignore .swp files

Rename serverCmd to apiCmd (the web client is technically a server too)

Add webCmd for html routes hosting

Add embedding and templating for web client

Add webhandlers

Fix some variables not being filled automatically by viper

Change flags and reorganize config structure
2023-05-25 19:22:46 -04:00

11 lines
168 B
Go

package webhandlers
import (
"net/http"
"github.com/labstack/echo/v4"
)
func GetIndex(c echo.Context) error {
return c.Render(http.StatusOK, "index-html", nil)
}