#Oak post request

7 messages · Page 1 of 1 (latest)

misty mica
#

I can't read data that was send with a post request

router.post("/continent", (ctx) => {
    const body = ctx.request.body()
    console.log(body.value)
  });```
rain totem
#

Have you figured it out?

#

Or this if you scroll down on here https://deno.land/x/oak@v11.1.0:. get("/:postId", (ctx) => {
ctx.response.body =
Forum: ${ctx.params.forumId}, Post: ${ctx.params.postId};
});

misty mica
#

ty

rain totem
#

Did you figure it out?

misty mica