2018-06-28 06:47:06 +00:00
|
|
|
var express = require('express');
|
|
|
|
var router = express.Router();
|
|
|
|
var assetLinks = require('../resources/assetlinks.json');
|
|
|
|
|
|
|
|
|
|
|
|
router.get('/.well-known/assetlinks.json', function(req, res) {
|
|
|
|
res.json(assetLinks);
|
|
|
|
});
|
|
|
|
|
|
|
|
router.get('/chat/:chatType/:chatId', function(req, res, next) {
|
|
|
|
res.render('index', {
|
|
|
|
title: 'Status.im join ' + req.params.chatId + ' chat',
|
|
|
|
path: req.originalUrl
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
router.get('/user/:userId', function(req, res, next) {
|
|
|
|
res.render('index', {
|
|
|
|
title: 'Status.im view ' + req.params.userId + ' profile',
|
2018-06-28 07:27:15 +00:00
|
|
|
path: req.originalUrl
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
router.get('/browse/:url', function(req, res, next) {
|
|
|
|
res.render('index', {
|
|
|
|
title: 'Status.im browse ' + req.params.url + ' dapp',
|
2018-06-28 06:47:06 +00:00
|
|
|
path: req.originalUrl
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = router;
|