From 690923efb3047ca6b5161ccf0b5aeedb9aadea80 Mon Sep 17 00:00:00 2001 From: Angel Beltran Date: Sun, 18 Jan 2026 21:57:14 -0700 Subject: [PATCH] fixed reference to PathParams --- internal/server/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/server/server.go b/internal/server/server.go index 050403b..023da95 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -74,14 +74,15 @@ func Router( r.Group("/ui"), contentDir, // TODO: move this constructor call up to main.go + // TODO: clean up the references to the templates dir throughout as well (should only be referred to in the 'main' package new(templater.Templater).With(templater.Config{ Funcs: func(name string, props map[string]any) template.FuncMap { return template.FuncMap{ // params "addPathParam": func(k string, v any, args map[string]any) (map[string]any, error) { - pathParams, ok := args["PathParams"].(map[string]string) + pathParams, ok := args["PathParams"].(map[string]any) if !ok { - return nil, fmt.Errorf("PathParams no set are args: %v", args) + return nil, fmt.Errorf("PathParams not set as args: %v", args) } pathParams[k] = fmt.Sprint(v)