From c8c9c465b241062570cc3955c01fb5d59d20d888 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 1 May 2024 19:57:48 -0300 Subject: web-routes, upd8, write: integrate web routes with url-spec [Note: due to a fantastical Rebase Fail Moment, this commit accidentally reintroduced some bad imports in upd8.js that are meant to be factored into #import-heck. So this commit is rewritten to not do that, but it means the commits in pull requests #442 and #479 don't line up with main history like they should. Oops.] --- src/web-routes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/web-routes.js') diff --git a/src/web-routes.js b/src/web-routes.js index 1d010b66..ab9633b8 100644 --- a/src/web-routes.js +++ b/src/web-routes.js @@ -17,12 +17,12 @@ function getNodeDependencyRootPath(dependencyName) { export const stationaryCodeRoutes = [ { from: path.join(codeSrcPath, 'static'), - to: '/static', + to: ['static.root'], }, { from: path.join(codeSrcPath, 'util'), - to: '/util', + to: ['util.root'], }, ]; @@ -39,8 +39,8 @@ export async function identifyDynamicWebRoutes({ }) { const routeFunctions = [ () => Promise.resolve([ - {from: path.resolve(mediaPath), to: '/media'}, - {from: path.resolve(mediaCachePath), to: '/thumb'}, + {from: path.resolve(mediaPath), to: ['media.root']}, + {from: path.resolve(mediaCachePath), to: ['thumb.root']}, ]), ]; -- cgit 1.3.0-6-gf8a5