mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-24 05:38:46 +00:00
feat: System api (#3461)
* feat: start system api * feat: remove auth * feat: change gitignore * feat: run system api * feat: remove clear view form admin api * feat: search instances * feat: add instance * fix: set primary domain * Update .gitignore * fix: add instance * fix: add instance * fix: handle errors * fix: handle instance name * fix: test Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
@@ -23,5 +23,7 @@ func (f InstanceDomainState) Exists() bool {
|
||||
}
|
||||
|
||||
func NewGeneratedInstanceDomain(instanceName, iamDomain string) string {
|
||||
//TODO: Add random number/string to be unique
|
||||
instanceName = strings.TrimSpace(instanceName)
|
||||
return strings.ToLower(strings.ReplaceAll(instanceName, " ", "-") + "." + iamDomain)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user