Welcome Guest, Not a member yet? Register   Sign In
Why request doesn't work with slash in the end of URL
#1

In Controller I have this method:

Code:
public function webhook()
    {
        $request = \Config\Services::request();

        $hook_request = $request->getJSON();
        var_dump($hook_request);
        }

if I send request like http://localhost/controller/webhook - this works
If I send http://localhost/controller/webhook/ it's not worked
What is wrong?
Reply


Messages In This Thread
Why request doesn't work with slash in the end of URL - by naghtigall - 01-21-2022, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB