💬 Ajoute les catégories et des nouveaux textes

This commit is contained in:
2019-09-19 17:17:57 +02:00
parent 983e025f5f
commit e678b9e4c3
5 changed files with 319 additions and 145 deletions

6
public/topics.php Normal file
View File

@@ -0,0 +1,6 @@
<?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]);