Refactor: move src to folder (#63)
* move all source code to src/ * replace express response patch with middleware * fix readdir not looking in src * fix stray redirect * add base to manifest * remove secret.txt from src/config/secret * add src/config/secret/secret.txt to gitignore
This commit is contained in:
parent
363146c331
commit
0d7d73744c
1569 changed files with 25 additions and 1159 deletions
25
src/routes/manifest.json/index.js
Normal file
25
src/routes/manifest.json/index.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
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: `${_CC.config.base}img/logo.png`
|
||||
}
|
||||
]
|
||||
})
|
||||
})
|
||||
|
||||
return router
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue