Implemented spotify plugin on server

This commit is contained in:
RemixDev
2021-05-29 12:06:26 +02:00
parent fee34f2b2a
commit 731295a317
25 changed files with 353 additions and 28 deletions

View File

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