Fix front page call redirect

This commit is contained in:
Jerko Steiner 2016-04-24 12:13:33 -04:00
parent c675e553c2
commit add5b707d1
2 changed files with 4 additions and 4 deletions

View File

@ -9,9 +9,9 @@ router.use((req, res, next) => {
});
router.get('/', (req, res) => {
let prefix = 'call/';
if (req.originalUrl.charAt(req.originalUrl.length - 1) === '/') prefix = '';
res.redirect(prefix + uuid.v4());
let prefix = 'call/';
if (req.originalUrl.charAt(req.originalUrl.length - 1) === '/') prefix = '';
res.redirect(prefix + uuid.v4());
});
router.get('/:callId', (req, res) => {

View File

@ -16,7 +16,7 @@ html
div#container
form#form(method="get" action="call/")
form#form(method="get" action="call")
h1
img(src="res/peer-calls.svg" width="100%" alt="Peer Calls")
p Group peer-to-peer calls for everyone. Create a private room. Share the link.