Skip to content

Commit

Permalink
Unauthorized Correction
Browse files Browse the repository at this point in the history
reassigning "unauthorized" to route instead of api
  • Loading branch information
MikeGarde committed Aug 26, 2019
1 parent 0e67da1 commit 1509ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataDogMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function terminate(Request $request, Response $response)
if (!Auth::id())
{
$user = 0;
$resource = ['api' => 'unauthorized'];
$resource = ['route' => 'unauthorized'];
}
else
{
Expand Down

0 comments on commit 1509ff6

Please sign in to comment.