#8 financer-web-client has a hard dependency on push-service
This commit is contained in:
@@ -196,13 +196,13 @@ public class AccountController {
|
||||
|
||||
// ---------------------------------------------
|
||||
|
||||
@Autowired
|
||||
@Autowired(required = false)
|
||||
private SubscriptionService subscriptionService;
|
||||
private int counter = 0;
|
||||
|
||||
@GetMapping("/sentTestNotification")
|
||||
public String sentTestNotification() {
|
||||
if (this.subscriptionService.isInitialized()) {
|
||||
@GetMapping("/sendTestNotification")
|
||||
public String sendTestNotification() {
|
||||
if (this.subscriptionService != null && this.subscriptionService.isInitialized()) {
|
||||
PayloadDto p = new PayloadDto("Hello from Financer!");
|
||||
|
||||
p.setTimestamp(System.currentTimeMillis());
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
<hr>
|
||||
<div>
|
||||
<span th:text="'financer v' + ${financerVersion}"/>
|
||||
(<a th:href="@{/changelog.txt}">Changelog</a>, <a th:href="@{/readme.txt}">Readme</a>, <a th:href="@{/sentTestNotification}">Test</a>)
|
||||
(<a th:href="@{/changelog.txt}">Changelog</a>, <a th:href="@{/readme.txt}">Readme</a>, <a th:href="@{/sendTestNotification}">Test</a>)
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user