Merge pull request #95 from coralproject/deprecate-stream-preview

Deprecate stream preview
This commit is contained in:
David Erwin
2016-11-25 12:00:51 -05:00
committed by GitHub
2 changed files with 4 additions and 8 deletions
+3 -7
View File
@@ -1,14 +1,10 @@
const express = require('express');
const router = express.Router();
router.get('/embed/stream/preview', (req, res) => {
res.render('embed-stream', {basePath: '/client/embed/stream'});
});
// this route is expecting there to be a token in the hash
// see /views/password-reset-email.ejs
// Get /password-reset expects a signed token (JWT) in the hash.
// Links to this endpoint are generated by /views/password-reset-email.ejs.
router.get('/password-reset', (req, res, next) => {
// TODO: store the redirect uri in the token or something fancy
// TODO: store the redirect uri in the token or something fancy.
// admins and regular users should probably be redirected to different places.
res.render('password-reset', {redirectUri: process.env.TALK_ROOT_URL});
});
+1 -1
View File
@@ -10,4 +10,4 @@
<div id="coralStream"></div>
<script src="/client/embed/stream/bundle.js"></script>
</body>
</html>
</html>