diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,7 @@ package main import ( + "embed" "fmt" "git.sr.ht/~gabrielgio/midr/db" @@ -9,8 +10,11 @@ import ( var Version = "development" +//go:embed assets/* templates/* +var f embed.FS + func main() { fmt.Println("Version:\t", Version) db.ConnectDb() - routes.HandleRequests() + routes.HandleRequests(f) } |