deemix-gui/server/src/routes/api/get/getSettings.ts

13 lines
331 B
TypeScript
Raw Normal View History

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