Added chapter move actions. Closes #86

This commit is contained in:
Dan Brown
2016-06-25 15:31:38 +01:00
parent e584b4926f
commit 9baa96d41c
10 changed files with 167 additions and 17 deletions

View File

@ -468,6 +468,14 @@ class PageController extends Controller
]);
}
/**
* Does the action of moving the location of a page
* @param $bookSlug
* @param $pageSlug
* @param Request $request
* @return mixed
* @throws NotFoundException
*/
public function move($bookSlug, $pageSlug, Request $request)
{
$book = $this->bookRepo->getBySlug($bookSlug);