7 Replies
let me add this:
request: { url: "http://localhost:4040/cities", method: "POST", hasBody: true }
response: { status: 404, type: undefined, hasBody: false, writable: true }
This is the error. Internal Server Error. š¦
what framework are you using
also, why not use
instead of trying to hack it in with "satisfies"
ok
with OAK
what is this:
Expected 0 type arguments, but got 1.deno-ts(2558)
interface ICity
ah sorry, looks like that must have misremembered this functionality, disregard my prior comment
what error are you getting?
Internal Server Error
š¦
and when i make a get-request: 404 not found
looking at the docs, i have no idea where you're getting a return statement from
don't you have to set
ctx.response.body
?oh
yes
thank you
i forgot
š¦
silly me
ssooooooo...
GET works, POST doesn't
ok now it works