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

13 lines
295 B
TypeScript
Raw Normal View History

import { ApiHandler } from '../../../types'
2021-05-29 10:06:26 +00:00
import { getSettings } from '../../../main'
const path: ApiHandler['path'] = '/getSettings'
2021-05-13 18:47:48 +00:00
const handler: ApiHandler['handler'] = (_, res) => {
2021-05-29 10:06:26 +00:00
res.send(getSettings())
}
const apiHandler: ApiHandler = { path, handler }
export default apiHandler