Add Youtube videos to the map (#13592)
This commit is contained in:
committed by
Quincy Larson
parent
0d9db6ea35
commit
4a3fcba501
3
server/boot/react.js
vendored
3
server/boot/react.js
vendored
@@ -30,6 +30,9 @@ export default function reactSubRouter(app) {
|
||||
(req, res) => res.redirect(`/challenges/${req.params.dashedName}`)
|
||||
);
|
||||
|
||||
// youtube data not available on app load, send to the map
|
||||
router.get(/youtube.*/, (req, res) => res.redirect('/map'));
|
||||
|
||||
// These routes are in production
|
||||
routes.forEach((route) => {
|
||||
router.get(route, serveReactApp);
|
||||
|
||||
Reference in New Issue
Block a user