email-templates/public/topics.php

6 lines
247 B
PHP
Raw Permalink Normal View History

<?php
header('Content-Type: application/json');
$json_content = json_decode(file_get_contents(__DIR__.'/emails.json'), true);
echo json_encode(array_map(function($json_content_part) { return array_keys($json_content_part); }, $json_content)[0]);