pre-download static files, and add api versioning

This commit is contained in:
Aiden McClelland
2022-02-07 23:44:22 -07:00
committed by Aiden McClelland
parent 01d766fce9
commit d3c5648608
8 changed files with 171 additions and 115 deletions

View File

@@ -191,7 +191,7 @@ export class MockApiService extends ApiService {
async marketplaceProxy (path: string, params: {}, url: string): Promise<any> {
await pauseFor(2000)
if (path === '/package/data') {
if (path === '/package/v0/data') {
return {
name: 'Dark9',
categories: [
@@ -204,9 +204,9 @@ export class MockApiService extends ApiService {
'alt coin',
],
}
} else if (path === '/package/index') {
} else if (path === '/package/v0/index') {
return Mock.MarketplacePkgsList
} else if (path === '/package/release-notes') {
} else if (path === '/package/v0/release-notes') {
return Mock.ReleaseNotes
}
}