1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Fixed bad /api docs redirection on sub path

Direct route redirect does not seem to go via standard URL generator so
misses off generation via base URL.
This commit is contained in:
Dan Brown
2023-05-29 14:41:59 +01:00
parent e3c4a9d167
commit f78c0635ee
2 changed files with 9 additions and 1 deletions

View File

@@ -28,4 +28,12 @@ class ApiDocsController extends ApiController
return response()->json($docs);
}
/**
* Redirect to the API docs page.
*/
public function redirect()
{
return redirect('/api/docs');
}
}