Major code rework

This commit is contained in:
RemixDev
2022-02-05 01:15:26 +01:00
parent 5d29424c3a
commit 87164f0644
49 changed files with 562 additions and 927 deletions

View File

@@ -1,10 +1,10 @@
import { ApiHandler } from '../../../types'
import { getSettings } from '../../../main'
const path: ApiHandler['path'] = '/getSettings'
const handler: ApiHandler['handler'] = (_, res) => {
res.send(getSettings())
const handler: ApiHandler['handler'] = (req, res) => {
const deemix = req.app.get('deemix')
res.send(deemix.getSettings())
}
const apiHandler: ApiHandler = { path, handler }