1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-14 07:02:30 +01:00
send/server/routes/webmanifest.js
2018-11-20 15:00:32 -05:00

29 lines
652 B
JavaScript

const assets = require('../../common/assets');
module.exports = function(req, res) {
const manifest = {
name: 'Firefox Send',
short_name: 'Send',
lang: req.language,
icons: [
{
src: assets.get('favicon-144.png'),
type: 'image/png',
sizes: '144x144'
},
{
src: assets.get('send_logo.svg'),
type: 'image/svg',
sizes: '192x192 512x512'
}
],
start_url: '/',
display: 'standalone',
orientation: 'portrait',
theme_color: '#0a84ff',
background_color: 'white'
};
res.set('Content-Type', 'application/manifest+json');
res.json(manifest);
};