This commit is contained in:
2023-09-15 09:13:59 +08:00
parent 82ccab7bd6
commit 2d00a571d5
2 changed files with 17 additions and 13 deletions
+10 -7
View File
@@ -10,12 +10,15 @@ class NotFoundController extends Controller
{
/**
* @return ResponseInterface
*/
public function fail(): ResponseInterface
{
return $this->response->withStatus(404, "not found page.");
}
/**
* @return ResponseInterface
*/
public function fail(): ResponseInterface
{
if ($this->request->getMethod() == 'OPTIONS') {
return $this->response->withStatus(200, "");
}
return $this->response->withStatus(404, "not found page.");
}
}