aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-07-31 11:58:20 +0200
committerGravatar GitHub <noreply@github.com> 2016-07-31 11:58:20 +0200
commitdf27e435f26df5e4e31dd34b334b2d1e27297158 (patch)
treebf64b2fc6f7418f9c3c9c7bb33fe08d4ec0cb66c
parentfb76cff120d88dbc82268b0c6f87221015654333 (diff)
parent21a6521ba9ab8df18ad8386465cba9e9af99ce7f (diff)
Merge pull request #1186 from Alkarex/api_help
More links for API help
-rw-r--r--app/views/user/profile.phtml1
-rw-r--r--p/api/index.php (renamed from p/api/index.html)11
2 files changed, 11 insertions, 1 deletions
diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml
index 7ae2c7ede..a97970927 100644
--- a/app/views/user/profile.phtml
+++ b/app/views/user/profile.phtml
@@ -37,6 +37,7 @@
<input type="password" id="apiPasswordPlain" name="apiPasswordPlain" autocomplete="off" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/>
<a class="btn toggle-password" data-toggle="apiPasswordPlain"><?php echo _i('key'); ?></a>
</div>
+ <?php echo _i('help'); ?> <kbd><a href="../api/"><?php echo Minz_Url::display('/api/greader.php', 'html', true); ?></a></kbd>
</div>
</div>
<?php } ?>
diff --git a/p/api/index.html b/p/api/index.php
index 8da0bcb58..3ab4e02b3 100644
--- a/p/api/index.html
+++ b/p/api/index.php
@@ -11,8 +11,17 @@
<h1>FreshRSS API</h1>
<h2>Google Reader compatible API</h2>
+<dl>
+<dt>Your API address:</dt>
+<dd><?php
+require('../../constants.php');
+require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
+Minz_Configuration::register('system', DATA_PATH . '/config.php', DATA_PATH . '/config.default.php');
+echo Minz_Url::display('/api/greader.php', 'html', true);
+?></dd>
+</dl>
<ul>
-<li><a href="greader.php/check%2Fcompatibility" rel="nofollow">Check full server configuration (with <code>%2F</code> support)</a></li>
+<li><a href="greader.php/check%2Fcompatibility" rel="nofollow">Check full server configuration</a></li>
<li><a href="greader.php/check/compatibility" rel="nofollow">Check partial server configuration (without <code>%2F</code> support)</a></li>
</ul>