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

fix: add _debug as optional query param in swagger apis for GET stp/execute

This commit is contained in:
2023-08-07 22:01:52 +05:00
parent a4f78ab48d
commit 9586dbb2d0
4 changed files with 29 additions and 5 deletions

View File

@@ -13,7 +13,11 @@ stpRouter.get('/execute', async (req, res) => {
if (error) return res.status(400).send(error.details[0].message)
try {
const response = await controller.executeGetRequest(req, query._program)
const response = await controller.executeGetRequest(
req,
query._program,
query._debug
)
if (response instanceof Buffer) {
res.writeHead(200, (req as any).sasHeaders)