basic Scanner working

ref #1
This commit is contained in:
Philipp Dormann 2021-03-17 18:55:50 +01:00
parent 1fc0490590
commit 559842d2a6
1 changed files with 2 additions and 5 deletions

View File

@ -58,14 +58,11 @@
if (card === "cnf") {
page.set("settings");
} else {
console.log({
blubb: { Authorization: "Bearer " + $apikey },
data: { card, station: JSON.parse($stationinfo).id },
});
card = parseInt(card);
lastscan_error = "";
axios
.request({
method: "GET",
method: "POST",
url: "https://dev.lauf-fuer-kaya.de/api/scans/trackscans",
headers: { Authorization: "Bearer " + $apikey },
data: { card, station: JSON.parse($stationinfo).id },