add theme system
This commit is contained in:
parent
6edd141d63
commit
11272c4a85
2 changed files with 15 additions and 0 deletions
5
main.go
5
main.go
|
|
@ -6,6 +6,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
|
|
@ -18,6 +19,9 @@ import (
|
|||
"github.com/julienschmidt/httprouter"
|
||||
)
|
||||
|
||||
//go:embed all:templates
|
||||
var resources embed.FS
|
||||
|
||||
// The main function
|
||||
func main() {
|
||||
app := core.New()
|
||||
|
|
@ -43,6 +47,7 @@ func main() {
|
|||
app.SetGormConfig(config.GetGormConfig())
|
||||
app.SetCacheConfig(config.GetCacheConfig())
|
||||
app.Bootstrap()
|
||||
app.RegisterTemplates(resources)
|
||||
registerGlobalHooks()
|
||||
registerRoutes()
|
||||
registerEvents()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue