diff options
| author | 2025-06-03 00:16:17 +0200 | |
|---|---|---|
| committer | 2025-06-03 00:16:17 +0200 | |
| commit | cc35094bb261cb3185def89d745317fa756560ee (patch) | |
| tree | 0d94bbd1dfe1013101dd96b8dbfa975d275ddf7b /p/api/index.php | |
| parent | 430d4e898e60ec1892d7191cf6e039aaf693822f (diff) | |
Add API endpoint for extensions (#7576)
* Add API endpoint for extensions
Useful for https://github.com/FreshRSS/FreshRSS/issues/7572
* Support PATH_INFO
Now also support being invoked like `/api/misc.php/Extension%20Name/`
* More documentation
Diffstat (limited to 'p/api/index.php')
| -rw-r--r-- | p/api/index.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/p/api/index.php b/p/api/index.php index 66c9e465c..fd9828080 100644 --- a/p/api/index.php +++ b/p/api/index.php @@ -28,9 +28,7 @@ echo json_encode([ <h2>Google Reader compatible API</h2> <dl> <dt>Your API address:</dt> -<dd><?php -echo Minz_Url::display('/api/greader.php', 'html', true); -?></dd> +<dd><?= Minz_Url::display('/api/greader.php', 'html', true) ?></dd> <dt>Google Reader API configuration test:</dt> <dd id="greaderOutput">?</dd> </dl> @@ -38,12 +36,16 @@ echo Minz_Url::display('/api/greader.php', 'html', true); <h2>Fever compatible API</h2> <dl> <dt>Your API address:</dt> -<dd><?php -echo Minz_Url::display('/api/fever.php', 'html', true); -?></dd> +<dd><?= Minz_Url::display('/api/fever.php', 'html', true) ?></dd> <dt>Fever API configuration test:</dt> <dd id="feverOutput">?</dd> </dl> +<h2>API for extensions</h2> +<dl> +<dt>Your API address:</dt> +<dd><?= Minz_Url::display('/api/misc.php/Extension%20name/', 'html', true) ?></dd> +</dl> + </body> </html> |
