eee
This commit is contained in:
@@ -15,10 +15,8 @@ class NotFoundController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function fail(): ResponseInterface
|
public function fail(): ResponseInterface
|
||||||
{
|
{
|
||||||
var_dump($this->request->getMethod());
|
|
||||||
var_dump($this->response);
|
|
||||||
if ($this->request->getMethod() == 'OPTIONS') {
|
if ($this->request->getMethod() == 'OPTIONS') {
|
||||||
return $this->response->html('');
|
return $this->response->json([], 200);
|
||||||
} else {
|
} else {
|
||||||
return $this->response->withStatus(404, "not found page.");
|
return $this->response->withStatus(404, "not found page.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user