This commit is contained in:
Kilian Hofmann 2024-07-27 19:06:38 +02:00
parent 24fad3bb59
commit e850d14c2b

View File

@ -58,6 +58,12 @@ SimpleRouter::group(["middleware" => Khofmann\Auth\Auth::class], function () {
SimpleRouter::patch("/users/self", [Api\Users\Users::class, "patchSelf"]);
// Update image self
SimpleRouter::patch("/users/self/image", function () {
Response::response()
->header("Cache-control: no-cache")
->header("Access-Control-Allow-Origin: *")
->header("Access-Control-Allow-Methods: *")
->header("Access-Control-Allow-Headers: *");
print_r(Input::file("image"));
echo "\n";
print_r(Input::patch("predefined"));