updateForm.php hinzugefügt

This commit is contained in:
R40fendt
2026-01-04 18:12:02 +01:00
parent 5cb0b78d27
commit ae2d80b47e
2 changed files with 22 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
<?php <?php
header("Content-Type: application/json"); header("Content-Type: application/json");
header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: Authorization"); header("Access-Control-Allow-Headers: Authorization, Content-Type");
use Firebase\JWT\JWT; use Firebase\JWT\JWT;

21
admin/formulare/updateForm.php Executable file
View File

@@ -0,0 +1,21 @@
<?php
include("../../../mysqlverbinden.php");
include("../secret.php");
include("../../vendor/autoload.php");
include("../check.php");
$payload=getUserInfo();
$username=$payload->username;
$id=$payload->id;
$rawBody = file_get_contents('php://input');
$data = json_decode($rawBody, true);
if($data===null) die("Kein Body übertragen");
var_dump($data);