aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index d47424f..c763c5a 100644
--- a/main.go
+++ b/main.go
@@ -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)
}