1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-12 22:22:31 +01:00
send/server/routes/webmanifest.js
2019-03-09 16:45:17 -08:00

29 lines
668 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('android-chrome-192x192.png'),
type: 'image/png',
sizes: '192x192'
},
{
src: assets.get('android-chrome-512x512.png'),
type: 'image/png',
sizes: '512x512'
}
],
start_url: '/',
display: 'standalone',
orientation: 'portrait',
theme_color: '#220033',
background_color: 'white'
};
res.set('Content-Type', 'application/manifest+json');
res.json(manifest);
};