Moved functions out of main, added getSettings

This commit is contained in:
RemixDev
2021-04-30 14:27:37 +02:00
parent d55470188c
commit e54eaa6a00
11 changed files with 179 additions and 158 deletions

View File

@@ -0,0 +1,12 @@
import { ApiHandler } from '../../../types'
import { settings } from '../../../main'
const path: ApiHandler['path'] = '/getSettings'
const handler: ApiHandler['handler'] = async (_, res) => {
res.send(settings)
}
const apiHandler: ApiHandler = { path, handler }
export default apiHandler