Skip to content
Snippets Groups Projects
Commit c6741604 authored by moonawar's avatar moonawar
Browse files

fix redirect

parent 51bab748
No related merge requests found
...@@ -28,7 +28,7 @@ class AuthorController extends Controller implements ControllerInterface ...@@ -28,7 +28,7 @@ class AuthorController extends Controller implements ControllerInterface
$this->model->addAuthor($authorName, $authorAge); $this->model->addAuthor($authorName, $authorAge);
header("Location: /home", true, 301); header("Location: /author/update", true, 301);
exit; exit;
default: default:
throw new RequestException('Method Not Allowed', 405); throw new RequestException('Method Not Allowed', 405);
......
...@@ -27,7 +27,7 @@ class GenreController extends Controller implements ControllerInterface ...@@ -27,7 +27,7 @@ class GenreController extends Controller implements ControllerInterface
$this->model->createGenre($name); $this->model->createGenre($name);
header("Location: /home", true, 301); header("Location: /genre/update", true, 301);
exit; exit;
default: default:
throw new RequestException('Method Not Allowed', 405); throw new RequestException('Method Not Allowed', 405);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment