Page MenuHomePhabricator

D3414.id10318.diff
No OneTemporary

D3414.id10318.diff

diff --git a/server/src/server.js b/server/src/server.js
--- a/server/src/server.js
+++ b/server/src/server.js
@@ -58,9 +58,9 @@
const router = express.Router();
router.use('/images', express.static('images'));
- router.use('/commlanding/images', express.static('images'));
+ router.use(`${landingBaseRoutePath}images`, express.static('images'));
router.use('/fonts', express.static('fonts'));
- router.use('/commlanding/fonts', express.static('fonts'));
+ router.use(`${landingBaseRoutePath}fonts`, express.static('fonts'));
router.use('/misc', express.static('misc'));
router.use(
'/.well-known',
@@ -81,7 +81,7 @@
express.static('app_compiled', compiledFolderOptions),
);
router.use(
- '/commlanding/compiled',
+ `${landingBaseRoutePath}compiled`,
express.static('landing_compiled', compiledFolderOptions),
);
router.use('/', express.static('icons'));
@@ -97,7 +97,10 @@
);
}
- router.post('/commlanding/subscribe_email', emailSubscriptionResponder);
+ router.post(
+ `${landingBaseRoutePath}subscribe_email`,
+ emailSubscriptionResponder,
+ );
router.get(
'/create_version/:deviceType/:codeVersion',

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 11:28 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611509
Default Alt Text
D3414.id10318.diff (1 KB)

Event Timeline