2018-01-19 19:58:57 -06:00
|
|
|
<?php
|
2018-01-19 21:48:26 -06:00
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2018-01-19 21:48:26 -06:00
|
|
|
namespace Pterodactyl\Http\Controllers\Api\Application;
|
|
|
|
|
|
2018-01-20 13:48:02 -06:00
|
|
|
use Illuminate\Http\Response;
|
2018-01-19 21:48:26 -06:00
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
|
|
|
|
|
|
|
|
|
abstract class ApplicationApiController extends Controller
|
|
|
|
|
{
|
2018-01-20 13:48:02 -06:00
|
|
|
/**
|
2022-10-14 10:59:20 -06:00
|
|
|
* Return an HTTP/204 response for the API.
|
2018-01-20 13:48:02 -06:00
|
|
|
*/
|
|
|
|
|
protected function returnNoContent(): Response
|
|
|
|
|
{
|
|
|
|
|
return new Response('', Response::HTTP_NO_CONTENT);
|
|
|
|
|
}
|
2018-01-19 21:48:26 -06:00
|
|
|
}
|