Node.js based forum software built for the modern web
feat(acp/tokens): add link to write API docs
Julian Lamed83e80f3108
diff --git a/public/language/en-GB/admin/settings/api.json b/public/language/en-GB/admin/settings/api.jsonindex 671e5eeb90..5a8eef2102 100644--- a/public/language/en-GB/admin/settings/api.json+++ b/public/language/en-GB/admin/settings/api.json@@ -4,7 +4,8 @@"lead-text": "From this page you can configure access to the Write API in NodeBB.","intro": "By default, the Write API authenticates users based on their session cookie, but NodeBB also supports Bearer authentication via tokens generated via this page.","warning": "<strong>Be advised</strong> — treat tokens like passwords. If they are leaked, your account should be considered compromised.",- "docs": "Click here to access the full API specification",+ "docs": "Click here to access the Read API specification",+ "docs.write": "Click here to access the Write API specification","require-https": "Require API usage via HTTPS only","require-https-caveat": "<strong>Note</strong>: Some installations involving load balancers may proxy their requests to NodeBB using HTTP, in which case this option should remain disabled.",diff --git a/src/views/admin/settings/api.tpl b/src/views/admin/settings/api.tplindex 23b5a8f412..aceb343d74 100644--- a/src/views/admin/settings/api.tpl+++ b/src/views/admin/settings/api.tpl@@ -18,12 +18,17 @@<p class="lead">[[admin/settings/api:lead-text]]</p><p>[[admin/settings/api:intro]]</p><p class="text-danger">[[admin/settings/api:warning]]</p>- <div class="d-flex align-items-center justify-content-between mb-2 flex-wrap gap-2 mb-3">- <a class="" href="https://docs.nodebb.org/api">+ <p class="d-flex flex-column gap-2">+ <a href="https://docs.nodebb.org/api"><i class="fa fa-external-link"></i>[[admin/settings/api:docs]]</a>- </div>+ <br />+ <a href="https://docs.nodebb.org/api/write">+ <i class="fa fa-external-link"></i>+ [[admin/settings/api:docs.write]]+ </a>+ </p><div class="mb-3"><div class="form-check form-switch mb-3">