summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
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.")