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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user