mirror of https://github.com/pixelfed/pixelfed
Add Health check endpoint at /api/service/health-check
parent
3f22640644
commit
ff58f9707f
@ -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