updateForm.php hinzugefügt
This commit is contained in:
@@ -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
21
admin/formulare/updateForm.php
Executable 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);
|
||||||
|
|
||||||
Reference in New Issue
Block a user