25 lines
512 B
JavaScript
25 lines
512 B
JavaScript
const express = require('express')
|
|
|
|
module.exports = ({ config }) => {
|
|
const router = express.Router()
|
|
|
|
router.get('/', (req, res) => {
|
|
res.send({
|
|
name: config.siteTitle,
|
|
short_name: config.shortTitle,
|
|
background_color: 'white',
|
|
description: 'Sleek Wishlist App',
|
|
theme_color: '#dc5878',
|
|
start_url: '/',
|
|
display: 'standalone',
|
|
icons: [
|
|
{
|
|
sizes: '1280x1280',
|
|
src: '/img/logo.png'
|
|
}
|
|
]
|
|
})
|
|
})
|
|
|
|
return router
|
|
}
|