photoprism/internal/config/client_ext.go
Michael Mayer e739dd3e89 Auth: Add support for config and routing extensions (WIP) #782 #2478
Enables developers to extend the existing config and API. Initial proof
of concept and work in progress. Implementation details may change.
Feedback welcome!

Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-05 23:13:34 +02:00

14 lines
293 B
Go

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