return response()->json($docs);
}
+
+ /**
+ * Redirect to the API docs page.
+ * Required as a controller method, instead of the Route::redirect helper,
+ * to ensure the URL is generated correctly.
+ */
+ public function redirect()
+ {
+ return redirect('/api/docs');
+ }
}