bottin/v4/web/embed.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
131 B
Go

package web
import "embed"
//go:embed templates/*
var templatesFS embed.FS
func GetTemplates() embed.FS {
return templatesFS
}