Generate benchmark routes

This commit is contained in:
Sam Carlton 2020-12-26 13:50:21 -06:00
parent 660ab9948e
commit a6c1332128

View file

@ -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
] ]
}) })
} }