Update authUser mutation to accept optional workplaceNumber parameter and adjust login function accordingly. Enhance API logging for authentication requests to include workplaceNumber for better debugging.
Some checks failed
platform/bro-js/challenge-pl/pipeline/head There was a failure building this commit
Some checks failed
platform/bro-js/challenge-pl/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -24,7 +24,13 @@ router.use((req, res, next) => {
|
||||
|
||||
// Challenge API endpoints
|
||||
router.post('/challenge/auth', (req, res) => {
|
||||
res.json(readJson('auth.json'))
|
||||
const { nickname, workplaceNumber } = req.body
|
||||
const response = readJson('auth.json')
|
||||
|
||||
// Логируем для отладки
|
||||
console.log('Auth request:', { nickname, workplaceNumber })
|
||||
|
||||
res.json(response)
|
||||
})
|
||||
|
||||
router.get('/challenge/chains', (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user