Switch to post
This commit is contained in:
parent
ee9126b9e8
commit
5ebdee09d8
@ -58,7 +58,7 @@ SimpleRouter::group(["middleware" => Khofmann\Auth\Auth::class], function () {
|
||||
// Update self
|
||||
SimpleRouter::patch("/users/self", [Api\Users\Users::class, "patchSelf"]);
|
||||
// Update image self
|
||||
SimpleRouter::patch("/users/self/image", function () {
|
||||
SimpleRouter::post("/users/self/image", function () {
|
||||
Response::response()
|
||||
->header("Cache-control: no-cache")
|
||||
->header("Access-Control-Allow-Origin: *")
|
||||
@ -67,7 +67,7 @@ SimpleRouter::group(["middleware" => Khofmann\Auth\Auth::class], function () {
|
||||
echo "<pre>";
|
||||
print_r(RequestRequest::request()->getInputHandler());
|
||||
echo "</pre>";
|
||||
$pre = Input::file("predefined");
|
||||
$pre = Input::post("predefined");
|
||||
echo $pre;
|
||||
echo "\n";
|
||||
echo Input::file("image");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user