1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-11 05:32:40 +01:00
send/server/routes/webmanifest.js

29 lines
652 B
JavaScript
Raw Normal View History

2018-11-20 21:00:32 +01:00
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);
};