This commit is contained in:
2026-05-20 16:52:28 +05:30
parent 367c5089a5
commit d556d1a73e
3 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import { getTopicIcon } from '../lib/icons'
import { LEGACY_BASE_URL } from '../data/topics'
function toProxyPath(fullUrl, baseUrl) {
// Only proxy the legacy Hasura API (to inject the admin secret via server)
// Only proxy the legacy GraphQL API (to inject the admin secret via server)
if (baseUrl === LEGACY_BASE_URL && fullUrl.startsWith(baseUrl)) {
return fullUrl.slice(baseUrl.length)
}
@@ -99,7 +99,7 @@ export default function TopicView({ topic, searchQuery }) {
: 'bg-indigo-50 text-indigo-600 border-indigo-100'
}`}>
<span className="w-1.5 h-1.5 rounded-full bg-current"></span>
{topic.type === 'legacy' ? 'Hasura API' : 'REST API'}
{topic.type === 'legacy' ? 'GraphQL API' : 'REST API'}
</span>
<span className="text-sm text-slate-400">{filtered.length} endpoint{filtered.length !== 1 ? 's' : ''}</span>
</div>