This commit is contained in:
User
2025-02-07 18:24:52 -05:00
parent 75d4a616dd
commit b7f9b0aff7
17 changed files with 304 additions and 245 deletions

View File

@@ -13,13 +13,12 @@ class PagesController
{
/**
* @param Request $request
* @param string $path
* @return ResponseFactory|Application|\Illuminate\Http\Response|Response
*/
public function show(Request $request, string $path = '')
public function show(string $path = '')
{
if (!File::exists(resource_path("js/Pages/Pages/$path.jsx"))) {
if (!File::exists(resource_path("js/Pages/Pages/{$path}.jsx"))) {
return response('Page not found', 404);
}