2018-08-23 06:04:37 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Module;
|
2018-08-23 06:04:37 +00:00
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
use Code\Web\Controller;
|
|
|
|
use Code\Lib\Activity;
|
2018-08-23 06:04:37 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class Apschema extends Controller
|
|
|
|
{
|
2018-08-23 06:04:37 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function init()
|
|
|
|
{
|
2018-08-23 06:04:37 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
$arr = [
|
|
|
|
'@context' => array_merge(['as' => 'https://www.w3.org/ns/activitystreams#'], Activity::ap_schema())
|
|
|
|
];
|
2018-08-23 06:04:37 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
header('Content-Type: application/ld+json');
|
|
|
|
echo json_encode($arr, JSON_UNESCAPED_SLASHES);
|
|
|
|
killme();
|
|
|
|
}
|
2021-12-03 03:01:39 +00:00
|
|
|
}
|