1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-07 14:40:05 +00:00

test(web): moved authorize specs from api to web

This commit is contained in:
Saad Jutt
2022-05-12 17:59:12 +05:00
parent 5888f04e08
commit a0b52d9982
5 changed files with 192 additions and 120 deletions

View File

@@ -26,7 +26,7 @@ webRouter.post('/SASLogon/login', async (req, res) => {
const response = await controller.login(req, body)
res.send(response)
} catch (err: any) {
res.status(400).send(err.toString())
res.status(403).send(err.toString())
}
})
@@ -41,7 +41,7 @@ webRouter.post(
const response = await controller.authorize(req, body)
res.send(response)
} catch (err: any) {
res.status(400).send(err.toString())
res.status(403).send(err.toString())
}
}
)
@@ -51,7 +51,7 @@ webRouter.get('/logout', async (req, res) => {
await controller.logout(req)
res.status(200).send('OK!')
} catch (err: any) {
res.status(400).send(err.toString())
res.status(403).send(err.toString())
}
})