mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -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)
|
||||
|
||||
const categoryRoutes = Object.keys(categories).map( slug => ({
|
||||
|
|
@ -171,8 +177,11 @@ export default {
|
|||
...appRoutes,
|
||||
...gameRoutes,
|
||||
...homebrewRoutes,
|
||||
|
||||
// Non-app routes
|
||||
...videoRoutes,
|
||||
...categoryRoutes
|
||||
...categoryRoutes,
|
||||
...benchmarkRoutes
|
||||
]
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue