Add endpointPrefixes to lists

This commit is contained in:
Sam Carlton 2022-04-26 21:30:04 -05:00
parent 55e743a1e0
commit 39f665427a

View file

@ -59,21 +59,25 @@ class BuildLists {
// Main build methods // Main build methods
{ {
name: 'app', name: 'app',
endpointPrefix: 'app',
path: '/static/app-list.json', path: '/static/app-list.json',
buildMethod: buildAppList, buildMethod: buildAppList,
}, },
{ {
name: 'game', name: 'game',
endpointPrefix: 'game',
path: '/static/game-list.json', path: '/static/game-list.json',
buildMethod: buildGamesList, buildMethod: buildGamesList,
}, },
{ {
name: 'homebrew', name: 'homebrew',
endpointPrefix: 'formula',
path: '/static/homebrew-list.json', path: '/static/homebrew-list.json',
buildMethod: buildHomebrewList, buildMethod: buildHomebrewList,
}, },
{ {
name: 'device', name: 'device',
endpointPrefix: 'device',
path: '/static/device-list.json', path: '/static/device-list.json',
buildMethod: buildDeviceList, buildMethod: buildDeviceList,
}, },
@ -83,6 +87,7 @@ class BuildLists {
// since it depend on them // since it depend on them
{ {
name: 'video', name: 'video',
endpointPrefix: 'tv',
path: '/static/video-list.json', path: '/static/video-list.json',
buildMethod: async () => { buildMethod: async () => {