Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eladcon authored Aug 20, 2023
1 parent 0024859 commit 30c5295
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/wing-console/console/app/demo/index.w
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ let api = new cloud.Api();
api.get("/test-get", inflight (req: cloud.ApiRequest): cloud.ApiResponse => {
return cloud.ApiResponse {
status: 200,
body: Json.stringify({
query: Json (Json req).get("query"),
})
body: Json.stringify(req.query)
};
});
api.post("/test-post", inflight (req: cloud.ApiRequest): cloud.ApiResponse => {
Expand Down

0 comments on commit 30c5295

Please sign in to comment.