feat: resolved small gateway issues and added gateway uninstall command

This commit is contained in:
=
2025-03-23 22:24:41 +05:30
parent 4adf0aa1e2
commit 54b13a9daa
4 changed files with 81 additions and 15 deletions
+2 -1
View File
@@ -245,8 +245,9 @@ func getCurrentBranch() (string, error) {
}
func AppendAPIEndpoint(address string) string {
// if it's empty return as it is
// Ensure the address does not already end with "/api"
if strings.HasSuffix(address, "/api") {
if address == "" || strings.HasSuffix(address, "/api") {
return address
}