moved login route from /login to /embed/login

This commit is contained in:
Wyatt Johnson
2018-02-13 11:16:39 -07:00
parent de094ee948
commit 4053a25239
4 changed files with 6 additions and 5 deletions
@@ -75,7 +75,7 @@ export default class Embed extends React.Component {
<AutomaticAssetClosure asset={asset} />
<IfSlotIsNotEmpty slot="login">
<Popup
href={`login?parentUrl=${encodeURIComponent(parentUrl)}`}
href={`embed/login?parentUrl=${encodeURIComponent(parentUrl)}`}
title="Login"
features="menubar=0,resizable=0,width=500,height=550,top=200,left=500"
open={showSignInDialog}
+4
View File
@@ -5,4 +5,8 @@ router.use('/stream', (req, res) => {
res.render('embed/stream');
});
router.use('/login', (req, res) => {
res.render('embed/login');
});
module.exports = router;
-4
View File
@@ -160,10 +160,6 @@ if (process.env.NODE_ENV !== 'production') {
});
}
router.use('/login', staticTemplate, async (req, res, next) => {
return res.render('login');
});
// Inject server route plugins.
plugins.get('server', 'router').forEach(plugin => {
debug(`added plugin '${plugin.plugin.name}'`);
@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" type="text/css" href="<%= STATIC_URL %>static/embed/stream/default.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<%_ if (locals.customCssUrl) { _%>