mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
API: Some more endpoints
This commit is contained in:
parent
a5d7662c97
commit
3bbf543d25
11 changed files with 611 additions and 45 deletions
|
@ -110,7 +110,7 @@ class BaseApi extends BaseModule
|
|||
public static function unsupported(string $method = 'all')
|
||||
{
|
||||
$path = DI::args()->getQueryString();
|
||||
Logger::info('Unimplemented API call', ['path' => $path, 'method' => $method]);
|
||||
Logger::info('Unimplemented API call', ['method' => $method, 'path' => $path, 'agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
|
||||
$error = DI::l10n()->t('API endpoint %s %s is not implemented', strtoupper($method), $path);
|
||||
$error_description = DI::l10n()->t('The API endpoint is currently not implemented but might be in the future.');;
|
||||
$errorobj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue