Skip to content

Commit

Permalink
consider TSV stream response
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Oct 15, 2024
1 parent d3fea3b commit ccda3bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1/stats/sushi/StatsSushiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Symfony\Component\HttpFoundation\StreamedResponse;

class StatsSushiController extends \PKP\API\v1\stats\sushi\PKPStatsSushiController
{
Expand All @@ -40,7 +41,7 @@ public function getGroupRoutes(): void
* A customizable report detailing activity at the pre-print level
* that allows the user to apply filters and select other configuration options for the report.
*/
public function getReportsIR(Request $illuminateRequest): JsonResponse
public function getReportsIR(Request $illuminateRequest): JsonResponse|StreamedResponse
{
return $this->getReportResponse(new IR(), $illuminateRequest);
}
Expand Down

0 comments on commit ccda3bd

Please sign in to comment.