Skip to content
Snippets Groups Projects
Unverified Commit 56a26977 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Merge pull request #4087 from rschamp/3.0-routes

Use 3.0 routes for GETs
parents ffa2e878 5c83d603
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ class Storage extends ScratchStorage {
this.projectHost = projectHost;
}
getProjectGetConfig (projectAsset) {
return `${this.projectHost}/internalapi/project/${projectAsset.assetId}/get/`;
return `${this.projectHost}/${projectAsset.assetId}`;
}
getProjectCreateConfig () {
return {
......
......@@ -40,9 +40,9 @@ describe('player example', () => {
.then(pLogs => pLogs.map(log => JSON.parse(log.message).message)
.filter(m => m.method === 'Network.requestWillBeSent')
.map(m => m.params.request.url)
.filter(url => url === 'https://projects.scratch.mit.edu/internalapi/project/96708228/get/')
.filter(url => url === 'https://projects.scratch.mit.edu/96708228')
);
await expect(projectRequests).toEqual(['https://projects.scratch.mit.edu/internalapi/project/96708228/get/']);
await expect(projectRequests).toEqual(['https://projects.scratch.mit.edu/96708228']);
});
});
......@@ -71,9 +71,9 @@ describe('blocks example', () => {
.then(pLogs => pLogs.map(log => JSON.parse(log.message).message)
.filter(m => m.method === 'Network.requestWillBeSent')
.map(m => m.params.request.url)
.filter(url => url === 'https://projects.scratch.mit.edu/internalapi/project/96708228/get/')
.filter(url => url === 'https://projects.scratch.mit.edu/96708228')
);
await expect(projectRequests).toEqual(['https://projects.scratch.mit.edu/internalapi/project/96708228/get/']);
await expect(projectRequests).toEqual(['https://projects.scratch.mit.edu/96708228']);
});
test('Change categories', async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment