[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
This commit is contained in:
parent
3e37e8ffef
commit
3aa7faa2f6
7 changed files with 201 additions and 32 deletions
11
v4/web/webhandlers/handlers.go
Normal file
11
v4/web/webhandlers/handlers.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package webhandlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
func GetIndex(c echo.Context) error {
|
||||
return c.Render(http.StatusOK, "index-html", nil)
|
||||
}
|
Reference in a new issue