Skip to content

Commit

Permalink
Set default cluster url (#38)
Browse files Browse the repository at this point in the history
* Set default cluster url

* update patch version
  • Loading branch information
ManishPrajapati-GoFynd authored Aug 7, 2024
1 parent dfaa7af commit 2d54433
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>com.fynd</groupId>
<artifactId>fynd-extension-java</artifactId>
<version>0.6.3</version>
<version>0.6.4</version>
<name>fynd-extension-java</name>
<description>Java Fynd Extension Library</description>
<properties>
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/fynd/extension/model/ExtensionProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class ExtensionProperties {

private WebhookProperties webhook;

// Default cluster value
private static final String DEFAULT_CLUSTER = "https://api.fynd.com";

public String getBaseUrl() {
return baseUrl;
}
Expand All @@ -51,4 +54,12 @@ public List<String> getScopes() {
public void setScopes(List<String> scopes) {
this.scopes = Optional.ofNullable(scopes).orElse(null);
}

public String getCluster() {
return Optional.ofNullable(cluster).orElse(DEFAULT_CLUSTER);
}

public void setCluster(String cluster) {
this.cluster = Optional.ofNullable(cluster).orElse(DEFAULT_CLUSTER);
}
}

0 comments on commit 2d54433

Please sign in to comment.