summary refs log tree commit diff
path: root/cmd
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2021-07-26 21:52:58 +0200
committerMelonai <einebeere@gmail.com>2021-07-26 21:53:36 +0200
commit0ac82c133b78a14239beb9034380c44d95d4bad3 (patch)
tree3ba65b4e3e5ceafaf2180ea697cc7794a07da669 /cmd
parent7819a23171145e8a626e8357e88446817c8785dc (diff)
downloadportgate-0ac82c133b78a14239beb9034380c44d95d4bad3.tar.zst
portgate-0ac82c133b78a14239beb9034380c44d95d4bad3.zip
Portgate pages and templates
Diffstat (limited to 'cmd')
-rw-r--r--cmd/portgate.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/portgate.go b/cmd/portgate.go
index afa756a..2bc0693 100644
--- a/cmd/portgate.go
+++ b/cmd/portgate.go
@@ -17,8 +17,11 @@ func main() {
 		log.Fatal("Failed to get Portgate config.")
 	}
 
+	// Load and Parse all Portgate templates
+	templates, _ := portgate.LoadAllTemplates()
+
 	// Create handler for requests
-	handler := handlers.NewRequestHandler(&config)
+	handler := handlers.NewRequestHandler(&config, templates)
 
 	// Start to listen to the outside world.
 	log.Print("Listening for requests on port 8080.")