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:
Wingy 2022-12-10 12:04:07 -05:00 committed by GitHub
parent 363146c331
commit 0d7d73744c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1569 changed files with 25 additions and 1159 deletions

View 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
}