deemixer/server/src/routes/api/get/spotifyStatus.ts
2022-02-05 01:15:26 +01:00

13 lines
330 B
TypeScript

import { ApiHandler } from '../../../types'
const path: ApiHandler['path'] = '/spotifyStatus'
const handler: ApiHandler['handler'] = (req, res) => {
const deemix = req.app.get('deemix')
res.send({ spotifyEnabled: deemix.plugins.spotify.enabled })
}
const apiHandler: ApiHandler = { path, handler }
export default apiHandler