added it_get_legal_page test

This commit is contained in:
Peter Papp
2021-03-12 16:49:39 +01:00
parent 89a6c51672
commit b837cc1906
3 changed files with 20 additions and 8 deletions

View File

@@ -174,14 +174,12 @@ class AppFunctionsController extends Controller
/**
* Get single page content
*
* @param $slug
* @param Page $page
* @return PageResource
*/
public function get_page($slug)
public function get_page(Page $page)
{
return new PageResource(
Page::where('slug', $slug)->first()
);
return new PageResource($page);
}
/**