The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/blockstack/server/routes.js

31 lines
834 B

import { Meteor } from 'meteor/meteor';
import { WebApp } from 'meteor/webapp';
import { settings } from '../../settings/server';
import { RocketChatAssets } from '../../assets/server';
WebApp.connectHandlers.use(
'/_blockstack/manifest',
Meteor.bindEnvironment(function (req, res) {
const name = settings.get('Site_Name');
const startUrl = Meteor.absoluteUrl();
const description = settings.get('Blockstack_Auth_Description');
const iconUrl = RocketChatAssets.getURL('Assets_favicon_192');
res.writeHead(200, {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
});
res.end(`{
"name": "${name}",
"start_url": "${startUrl}",
"description": "${description}",
"icons": [{
"src": "${iconUrl}",
"sizes": "192x192",
"type": "image/png"
}]
}`);
}),
);