photoprism/internal/config/client_ext.go
Michael Mayer dc39fc44d2 Security: Add "header" package for setting common response headers #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-09 17:16:49 +02:00

13 lines
286 B
Go

package config
// ClientExt returns optional client config values by namespace.
func ClientExt(c *Config, t ClientType) Values {
configs := Ext()
result := make(Values, len(configs))
for _, conf := range configs {
result[conf.name] = conf.clientValues(c, t)
}
return result
}