ViroManchego Posted March 23, 2021 Report Posted March 23, 2021 // Authorize the API user $authorized = $this->authenticate(); // Ensure that the request is formatted correctly if (isset($this->get[0]) && isset($this->get[1])) { $this->model = ''; $fields = explode('.', $this->get[0]);execute ... ....... 3. // Only proceed if authorized if (!$authorized) { $this->response(self::UNAUTHORIZED); } should process request only if authorized // Authorize the API user $authorized = $this->authenticate(); if (!$authorized) { $this->response(self::UNAUTHORIZED); } // Ensure that the request is formatted correctly
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now