Skip to content

Commit

Permalink
Frontend version added
Browse files Browse the repository at this point in the history
  • Loading branch information
C. Rambow committed Sep 13, 2024
1 parent 1b4e8f2 commit 185d8fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 11 additions & 5 deletions src/main/java/de/elomagic/rb/backend/dtos/VersionDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@

public class VersionDTO {

private String version;
private String backendVersion;
private String timestamp;
private String frontendVersion;

public VersionDTO() {}

public VersionDTO(@Nonnull String version, @Nonnull String timestamp) {
this.version = version;
public VersionDTO(@Nonnull String backendversion, @Nonnull String timestamp, @Nonnull String frontendVersion) {
this.backendVersion = backendversion;
this.timestamp = timestamp;
this.frontendVersion = frontendVersion;
}

public String getVersion() {
return version;
public String getBackendVersion() {
return backendVersion;
}

public String getTimestamp() {
return timestamp;
}

public String getFrontendVersion() {
return frontendVersion;
}

}
5 changes: 3 additions & 2 deletions src/main/resources/de/elomagic/rb/backend/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"version": "@project.version@",
"timestamp": "@maven.build.timestamp@"
"backendVersion": "@project.version@",
"timestamp": "@maven.build.timestamp@",
"frontendVersion": "@frontend.version@"
}

0 comments on commit 185d8fb

Please sign in to comment.