1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-11 16:20:06 +00:00

feat(execute): add sas controller

This commit is contained in:
Yury Shkoda
2021-08-03 08:28:28 +03:00
parent 8b1e79497f
commit bf1db4dd47
3 changed files with 59 additions and 2 deletions

View File

@@ -36,4 +36,12 @@ router.post('/deploy', async (req, res) => {
})
})
router.post('/execute', async (req, res) => {
if (req.body?._program) {
const result: ExecutionResult = await processSas(req.body)
} else {
res.status(400).send(`Please provide the location of SAS code`)
}
})
export default router