Skip to content

Commit

Permalink
Merge branch 'master' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
GodCipher committed May 29, 2024
2 parents 89ad316 + 6212991 commit 42647c4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package dev.luzifer.spring.controller;

import org.springframework.security.web.csrf.CsrfToken;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CsrfController {

@GetMapping("/csrf")
public String getCsrfToken(CsrfToken token) {
return token.getToken();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public CompletableFuture<ResponseEntity<?>> pushMatches(@RequestBody GameDto[] g
@GetMapping("${api.match.count}")
public CompletableFuture<ResponseEntity<Long>> countGameInfos() {
long count = matchService.countMatches();
log.info("Counted {} game information", count);
return CompletableFuture.completedFuture(ResponseEntity.ok(count));
}

Expand Down
2 changes: 2 additions & 0 deletions paladins-webservice/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spring.jpa.hibernate.ddl-auto=update
# Caching
spring.data.redis.host=localhost
spring.data.redis.port=6379
# Hurensohn
spring.main.allow-circular-references=true
# API-Requests
api.key=THV6aSBpc3QgZWluIFPDvMOfaQ==
api.key.header=API-KEY
Expand Down

0 comments on commit 42647c4

Please sign in to comment.