feat(server): added loginWithCredentials endpoint; feat(webui): added loginWithCredentials call
This commit is contained in:
parent
a1bc3fcbc1
commit
ea9639c7c2
@ -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]
|
||||
|
14
server/src/routes/api/post/loginWithCredentials.ts
Normal file
14
server/src/routes/api/post/loginWithCredentials.ts
Normal 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
2
webui
@ -1 +1 @@
|
||||
Subproject commit 856fdbb6b72f73a3346f9cb164109e03e461d804
|
||||
Subproject commit f659afffd2c9c7af0725179820da799af02dd53c
|
Loading…
Reference in New Issue
Block a user