strip any trailing slashes on api endpoint

This commit is contained in:
Cam 2023-10-18 15:33:31 -05:00
parent e1f6e1866a
commit 4daf99c49e
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -72,7 +72,7 @@ class Root:
apiEndpoint = self.env.ApiEndpoint apiEndpoint = self.env.ApiEndpoint
frm = "env" frm = "env"
return ApiEndpoint(apiEndpoint, frm) return ApiEndpoint(apiEndpoint.rstrip("/"), frm)
def IsEnabled(self) -> bool: def IsEnabled(self) -> bool:
return self.env != Environment() return self.env != Environment()