MCPcopy
hub / github.com/ThatGuySam/doesitarm / getAppEndpoint

Function getAppEndpoint

helpers/app-derived.js:43–57  ·  view source on GitHub ↗
( app )

Source from the content-addressed store, hash-verified

41}
42
43export function getAppEndpoint ( app ) {
44 // console.log('app', app)
45
46 if(app.category !== Object(app.category)) {
47 console.warn('app has no categories', app)
48 }
49
50 const appType = getAppType( app )
51
52 // if (app.category.slug === 'homebrew') return `/formula/${app.slug}`
53
54 // if (app.category.slug === 'games') return `/game/${app.slug}`
55
56 return `/${appType}/${app.slug}`
57}
58
59export function getVideoEndpoint ( video ) {
60

Callers 8

buildMethod · 0.90
buildReadmeAppListFunction · 0.90
lookForLastUpdatedFunction · 0.90
build-app-list.jsFile · 0.90
makeMethod · 0.90
build-game-list.jsFile · 0.90
makeAppSearchLinksFunction · 0.90

Calls 1

getAppTypeFunction · 0.85

Tested by

no test coverage detected