mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #2525 from paulkaplan/fix-project-server-routes
Update storage to get 3.0 projects.
This commit is contained in:
commit
f44d39b549
1 changed files with 1 additions and 6 deletions
|
@ -11,12 +11,7 @@ class Storage extends ScratchStorage {
|
|||
super();
|
||||
this.addWebSource(
|
||||
[this.AssetType.Project],
|
||||
projectAsset => {
|
||||
const [projectId, revision] = projectAsset.assetId.split('.');
|
||||
return revision ?
|
||||
`${PROJECT_HOST}/internalapi/project/${projectId}/get/${revision}` :
|
||||
`${PROJECT_HOST}/internalapi/project/${projectId}/get/`;
|
||||
}
|
||||
projectAsset => `${PROJECT_HOST}/${projectAsset.assetId}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue