feat: use decoded headers in proxy controller

This commit is contained in:
Stavros
2025-09-02 18:19:18 +03:00
parent b6bc3d0020
commit 78920cba64
7 changed files with 96 additions and 62 deletions

View File

@@ -6,13 +6,13 @@ import (
"github.com/traefik/paerser/parser"
)
func DecodeLabels(labels map[string]string) (config.Labels, error) {
var appLabels config.Labels
func DecodeLabels(labels map[string]string) (config.AppConfigs, error) {
var appLabels config.AppConfigs
err := parser.Decode(labels, &appLabels, "tinyauth")
err := parser.Decode(labels, &appLabels, "tinyauth", "tinyauth.apps")
if err != nil {
return config.Labels{}, err
return config.AppConfigs{}, err
}
return appLabels, nil