mirror of
https://github.com/friendica/friendica
synced 2025-04-19 08:30:11 +00:00
Simplify the output of api results
This commit is contained in:
parent
83056df565
commit
fb6c3e2912
5 changed files with 8 additions and 11 deletions
|
@ -70,7 +70,6 @@ class Index extends BaseApi
|
|||
];
|
||||
}
|
||||
|
||||
echo self::format('events', ['events' => $items]);
|
||||
exit;
|
||||
self::exit('events', ['events' => $items]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ class Version extends BaseApi
|
|||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
echo self::format('version', ['version' => '0.9.7']);
|
||||
exit;
|
||||
self::exit('version', ['version' => '0.9.7']);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,6 @@ class Test extends BaseApi
|
|||
$ok = 'ok';
|
||||
}
|
||||
|
||||
echo self::format('ok', ['ok' => $ok]);
|
||||
exit;
|
||||
self::exit('ok', ['ok' => $ok]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,8 +66,7 @@ class Show extends BaseApi
|
|||
'profiles' => $profiles
|
||||
];
|
||||
|
||||
echo self::format('friendica_profiles', ['$result' => $result]);
|
||||
exit;
|
||||
self::exit('friendica_profiles', ['$result' => $result]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue