mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Generate benchmark routes
This commit is contained in:
parent
660ab9948e
commit
a6c1332128
1 changed files with 10 additions and 1 deletions
|
|
@ -160,6 +160,12 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Build routes for app types that support benchmark endpoints
|
||||||
|
const benchmarkRoutes = [
|
||||||
|
...appRoutes,
|
||||||
|
// ...gameRoutes,
|
||||||
|
].flat(1).map( route => `${route}/benchmarks`)
|
||||||
|
|
||||||
// console.log('homebrewRoutes', homebrewRoutes)
|
// console.log('homebrewRoutes', homebrewRoutes)
|
||||||
|
|
||||||
const categoryRoutes = Object.keys(categories).map( slug => ({
|
const categoryRoutes = Object.keys(categories).map( slug => ({
|
||||||
|
|
@ -171,8 +177,11 @@ export default {
|
||||||
...appRoutes,
|
...appRoutes,
|
||||||
...gameRoutes,
|
...gameRoutes,
|
||||||
...homebrewRoutes,
|
...homebrewRoutes,
|
||||||
|
|
||||||
|
// Non-app routes
|
||||||
...videoRoutes,
|
...videoRoutes,
|
||||||
...categoryRoutes
|
...categoryRoutes,
|
||||||
|
...benchmarkRoutes
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue