From 0ac82c133b78a14239beb9034380c44d95d4bad3 Mon Sep 17 00:00:00 2001 From: Melonai Date: Mon, 26 Jul 2021 21:52:58 +0200 Subject: Portgate pages and templates --- cmd/portgate.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/portgate.go') 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.") -- cgit 1.4.1