feat: add BuildSubdomain helper
This commit is contained in:
parent
2a8c036dc6
commit
b4b211d003
|
@ -93,3 +93,7 @@ func (hs *APIRouter) SetLogger(logger *zap.Logger) {
|
|||
func (hs *APIRouter) SetConfig(config *config.Manager) {
|
||||
hs.config = config
|
||||
}
|
||||
|
||||
func BuildSubdomain(api RoutableAPI, cfg *config.Manager) string {
|
||||
return api.Name() + "." + cfg.Config().Core.Domain
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue