Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit ae5c465

Browse files
committed
add ip to ping endpoint for testing
1 parent 8a04418 commit ae5c465

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Homestead.json
1111
/storage/oauth-private.key
1212
/storage/oauth-public.key
1313
.idea/
14-
.DS_Store
14+
.DS_Store
15+
.phpunit.result.cache

app/Http/Controllers/Api/PingController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function index()
2424
return $this->response->array([
2525
'status' => 'ok',
2626
'timestamp' => \Carbon\Carbon::now(),
27+
'host' => request()->ip()
2728
]);
2829
}
2930
}

0 commit comments

Comments
 (0)