mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-25 13:48:03 -05:00
* Little's optimisations and booleans in conditions * Apply strict type * Apply strict type * Apply strict type * Fix multiple bugs with PHP 8.2 and 8.3 * Many declares missing, more errors fixed * Apply strict type * Another approach * Stronger typing for Minz_Session * Fix case of SQLite --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>FreshRSS API endpoints</title>
|
|
<meta name="robots" content="noindex" />
|
|
<link rel="start" href="../i/" />
|
|
<script src="../scripts/api.js" defer="defer"></script>
|
|
<script id="jsonVars" type="application/json">
|
|
<?php
|
|
require(__DIR__ . '/../../constants.php');
|
|
require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
|
|
FreshRSS_Context::initSystem();
|
|
echo json_encode(array(
|
|
'greader' => Minz_Url::display('/api/greader.php', 'php', true),
|
|
'fever' => Minz_Url::display('/api/fever.php', 'php', true),
|
|
));
|
|
?>
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>FreshRSS API endpoints</h1>
|
|
|
|
<h2>Google Reader compatible API</h2>
|
|
<dl>
|
|
<dt>Your API address:</dt>
|
|
<dd><?php
|
|
echo Minz_Url::display('/api/greader.php', 'html', true);
|
|
?></dd>
|
|
<dt>Google Reader API configuration test:</dt>
|
|
<dd id="greaderOutput">?</dd>
|
|
</dl>
|
|
|
|
<h2>Fever compatible API</h2>
|
|
<dl>
|
|
<dt>Your API address:</dt>
|
|
<dd><?php
|
|
echo Minz_Url::display('/api/fever.php', 'html', true);
|
|
?></dd>
|
|
<dt>Fever API configuration test:</dt>
|
|
<dd id="feverOutput">?</dd>
|
|
</dl>
|
|
|
|
</body>
|
|
</html>
|