add browse support

This commit is contained in:
Andrea Maria Piana 2018-06-28 09:27:15 +02:00
parent 9fa855f5ba
commit fe86281cf8
2 changed files with 10 additions and 2 deletions

View File

@ -10,7 +10,6 @@ router.get('/.well-known/assetlinks.json', function(req, res) {
router.get('/chat/:chatType/:chatId', function(req, res, next) {
res.render('index', {
title: 'Status.im join ' + req.params.chatId + ' chat',
chatId: req.params.chatId,
path: req.originalUrl
});
});
@ -18,7 +17,13 @@ router.get('/chat/:chatType/:chatId', function(req, res, next) {
router.get('/user/:userId', function(req, res, next) {
res.render('index', {
title: 'Status.im view ' + req.params.userId + ' profile',
chatId: req.params.userId,
path: req.originalUrl
});
});
router.get('/browse/:url', function(req, res, next) {
res.render('index', {
title: 'Status.im browse ' + req.params.url + ' dapp',
path: req.originalUrl
});
});

View File

@ -11,3 +11,6 @@ shakedown GET /chat/public/abc
shakedown GET /user/blah
status 200
shakedown GET /browse/www.test.com
status 200