Skip to content

Commit

Permalink
Merge pull request #316 from twenty-three-23/feature/TT-381
Browse files Browse the repository at this point in the history
TT-381 app info
  • Loading branch information
snacktime81 authored Aug 17, 2024
2 parents 8c5b11f + eaa89e9 commit 1e1554c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/com/twentythree/peech/common/app/AppInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.twentythree.peech.common.app;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public class AppInfo {
private String appMinVersion;
private boolean appAvailable;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.twentythree.peech.common.app;

import io.sentry.protocol.App;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class AppInfoController {

@GetMapping("api/v1.1/app")
public ResponseEntity<AppInfo> getAppInfo() {

return ResponseEntity.status(200).body(new AppInfo("6", false));
}
}

0 comments on commit 1e1554c

Please sign in to comment.