diff --git a/routes/admin/index.js b/routes/admin/index.js index 9d3cbd0a9..03852c375 100644 --- a/routes/admin/index.js +++ b/routes/admin/index.js @@ -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}); }); diff --git a/views/embed/stream.ejs b/views/embed/stream.ejs index 5cdef0811..f87318db6 100644 --- a/views/embed/stream.ejs +++ b/views/embed/stream.ejs @@ -10,4 +10,4 @@
- + \ No newline at end of file