all
Some checks failed
Publish Docker Image / build-and-push (push) Failing after 2m13s

This commit is contained in:
Sam Kintop
2026-04-30 09:44:02 -05:00
parent 0a30837e3d
commit bf3870ccca
111 changed files with 8383 additions and 0 deletions

17
src/Router/Method.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace Aternos\Mclogs\Router;
enum Method: string
{
case GET = 'GET';
case POST = 'POST';
case PUT = 'PUT';
case DELETE = 'DELETE';
case OPTIONS = 'OPTIONS';
public static function getCurrent(): self
{
return self::tryFrom($_SERVER['REQUEST_METHOD']) ?? self::GET;
}
}