Skip to content

Commit

Permalink
feat(api-gateway): Support POST for /v1/dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Dec 17, 2020
1 parent 6d30b7f commit d9af942
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cubejs-api-gateway/src/gateway.ts
Expand Up @@ -262,6 +262,14 @@ export class ApiGateway {
res: this.resToResultFn(res)
});
}));

app.post(`${this.basePath}/v1/dry-run`, jsonParser, this.requestMiddleware, (async (req, res) => {
await this.dryRun({
query: req.body.query,
context: req.context,
res: this.resToResultFn(res)
});
}));
}

public initSubscriptionServer(sendMessage) {
Expand Down

0 comments on commit d9af942

Please sign in to comment.