diff --git a/exam/routes/routes.php b/exam/routes/routes.php index 1d96da6..ccb5575 100644 --- a/exam/routes/routes.php +++ b/exam/routes/routes.php @@ -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"));