Use router constants

This commit is contained in:
Michael 2021-07-30 06:19:02 +00:00
parent c9eca1edeb
commit 432206bc5b
5 changed files with 16 additions and 11 deletions

View file

@ -21,6 +21,7 @@
namespace Friendica\Module\Api\Mastodon\Accounts;
use Friendica\App\Router;
use Friendica\Core\Logger;
use Friendica\Module\BaseApi;
use Friendica\Util\HTTPInputData;
@ -39,6 +40,6 @@ class UpdateCredentials extends BaseApi
Logger::info('Patch data', ['data' => $data]);
self::unsupported('patch');
self::unsupported(Router::PATCH);
}
}