graphql
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user