mirror of https://github.com/pixelfed/pixelfed
Merge pull request #4549 from pixelfed/staging
Add Health check endpoint at /api/service/health-checkpull/4591/head
commit
8e7963c0c5
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class HealthCheckController extends Controller
|
||||||
|
{
|
||||||
|
public function get(Request $request)
|
||||||
|
{
|
||||||
|
return response('OK')->withHeaders([
|
||||||
|
'Content-Type' => 'text/plain',
|
||||||
|
'Cache-Control' => 'max-age=0, must-revalidate, no-cache, no-store'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue