File tree Expand file tree Collapse file tree
src/main/java/com/digitalsanctuary/cf/turnstile Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Add the following dependency to your `pom.xml`:
3636<dependency >
3737 <groupId >com.digitalsanctuary</groupId >
3838 <artifactId >spring-cf-turnstile</artifactId >
39- <version >1.1.1 </version >
39+ <version >1.1.2 </version >
4040</dependency >
4141```
4242
@@ -46,7 +46,7 @@ Add the following dependency to your `build.gradle`:
4646
4747``` groovy
4848dependencies {
49- implementation 'com.digitalsanctuary:spring-cf-turnstile:1.1.1 '
49+ implementation 'com.digitalsanctuary:spring-cf-turnstile:1.1.2 '
5050}
5151```
5252
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import com.vanniktech.maven.publish.JavaLibrary
1313import com.vanniktech.maven.publish.JavadocJar
1414
1515group ' com.digitalsanctuary.cf.turnstile'
16- version ' 1.1.1 '
16+ version ' 1.1.2 '
1717description = ' SpringBoot Cloudflare Turnstile Library'
1818
1919ext {
Original file line number Diff line number Diff line change 2424public class TurnstileConfiguration {
2525
2626 @ Bean
27- public RestTemplate restTemplate (RestTemplateBuilder builder ) {
27+ public RestTemplate turnstileRestTemplate (RestTemplateBuilder builder ) {
2828 return builder .build ();
2929 }
3030
Original file line number Diff line number Diff line change 22
33import java .util .HashMap ;
44import java .util .Map ;
5+ import org .springframework .beans .factory .annotation .Qualifier ;
56import org .springframework .beans .factory .annotation .Value ;
67import org .springframework .http .HttpEntity ;
78import org .springframework .http .HttpHeaders ;
@@ -37,7 +38,7 @@ public class TurnstileValidationService {
3738 *
3839 * @param restTemplate the RestTemplate to be used for making HTTP requests.
3940 */
40- public TurnstileValidationService (RestTemplate restTemplate ) {
41+ public TurnstileValidationService (@ Qualifier ( "turnstileRestTemplate" ) RestTemplate restTemplate ) {
4142 this .restTemplate = restTemplate ;
4243 }
4344
You can’t perform that action at this time.
0 commit comments