mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-10-03 12:21:52 +02:00
chore: update official roadmap endpoint
This commit is contained in:
@@ -65,8 +65,10 @@ export function UserProgressModal(props: ProgressMapProps) {
|
||||
let resourceJsonUrl = import.meta.env.DEV
|
||||
? 'http://localhost:3000'
|
||||
: 'https://roadmap.sh';
|
||||
if (resourceType === 'roadmap') {
|
||||
if (resourceType === 'roadmap' && renderer === 'balsamiq') {
|
||||
resourceJsonUrl += `/${resourceId}.json`;
|
||||
} else if (resourceType === 'roadmap' && renderer === 'editor') {
|
||||
resourceJsonUrl = `${import.meta.env.PUBLIC_API_URL}/v1-official-roadmap/${resourceId}`;
|
||||
} else {
|
||||
resourceJsonUrl += `/best-practices/${resourceId}.json`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user