Skip to content

Commit

Permalink
Merge pull request #27 from morandanieli/replace_google_qr_service
Browse files Browse the repository at this point in the history
replace google qr service since it's no longer available
  • Loading branch information
denzilferreira authored Jul 4, 2024
2 parents 0c9ab16 + f208f61 commit f94636b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/awareframework/micro/MainVerticle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ class MainVerticle : AbstractVerticle() {
logger.info { "URL encoded for the QRCode is: $serverURL" }

client.get(
443, "chart.googleapis.com",
"/chart?chs=300x300&cht=qr&chl=$serverURL&choe=UTF-8"
443, "qrcode.tec-it.com",
"/API/QRCode?size=small&data=$serverURL"
)
.`as`(BodyCodec.pipe(asyncQrcode, true))
.send { request ->
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/qrcode.peb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

{% block content %}
URL to join study: {{ studyURL }}<br/>
<img src="/cache/qrcode.png" width="300px" height="300px" />
<img src="/cache/qrcode.png" width="300px" height="300px" style="padding: 50px"/>
{% endblock content %}

0 comments on commit f94636b

Please sign in to comment.