feat(server): added loginWithCredentials endpoint; feat(webui): added loginWithCredentials call

This commit is contained in:
Roberto Tonino 2021-05-23 20:34:28 +02:00
parent a1bc3fcbc1
commit ea9639c7c2
3 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import loginArl from './login-arl'
import addToQueue from './addToQueue'
import loginWithCredentials from './loginWithCredentials'
export default [loginArl, addToQueue]
export default [loginArl, addToQueue, loginWithCredentials]

View File

@ -0,0 +1,14 @@
import { ApiHandler } from '../../../types'
const path = '/loginWithCredentials'
const handler: ApiHandler['handler'] = (req, res) => {
const { username, password } = req.body
console.log({ username, password })
res.send(null)
}
const apiHandler = { path, handler }
export default apiHandler

2
webui

@ -1 +1 @@
Subproject commit 856fdbb6b72f73a3346f9cb164109e03e461d804
Subproject commit f659afffd2c9c7af0725179820da799af02dd53c