index.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>FreshRSS API endpoints</title>
  6. <meta name="robots" content="noindex" />
  7. <link rel="start" href="../i/" />
  8. <script src="../scripts/api.js" defer="defer"></script>
  9. <script id="jsonVars" type="application/json">
  10. <?php
  11. require(__DIR__ . '/../../constants.php');
  12. require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
  13. Minz_Configuration::register('system', DATA_PATH . '/config.php', FRESHRSS_PATH . '/config.default.php');
  14. echo json_encode(array(
  15. 'greader' => Minz_Url::display('/api/greader.php', 'php', true),
  16. 'fever' => Minz_Url::display('/api/fever.php', 'php', true),
  17. ));
  18. ?>
  19. </script>
  20. </head>
  21. <body>
  22. <h1>FreshRSS API endpoints</h1>
  23. <h2>Google Reader compatible API</h2>
  24. <dl>
  25. <dt>Your API address:</dt>
  26. <dd><?php
  27. echo Minz_Url::display('/api/greader.php', 'html', true);
  28. ?></dd>
  29. <dt>Google Reader API configuration test:</dt>
  30. <dd id="greaderOutput">?</dd>
  31. </dl>
  32. <h2>Fever compatible API</h2>
  33. <dl>
  34. <dt>Your API address:</dt>
  35. <dd><?php
  36. echo Minz_Url::display('/api/fever.php', 'html', true);
  37. ?></dd>
  38. <dt>Fever API configuration test:</dt>
  39. <dd id="feverOutput">?</dd>
  40. </dl>
  41. </body>
  42. </html>