From a6c1332128e9b4669a60d40bf9b73122a7f3a29f Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 26 Dec 2020 13:50:21 -0600 Subject: [PATCH] Generate benchmark routes --- nuxt.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index 2252e2b..7b6f456 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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 ] }) }