Category "koa"

KoaJs cant handle POST requests on CloudFunctions

I have a NodeJS Application written in KoaJS, app.ts const app = new Koa(); app.use(healthCheck()); app.use(bodyParser()); app.use(errorHandler()); app.use(end

Koa + TypeScript: Property 'body' does not exist on type Request

I wanted to use koa & koa-bodyparser with TypeScript but whenever I access ctx.request.body I get an error that body doesn't exist on type Request import Ko

KoaJS: Ending a response

I have a simple koa echo server: var koa = require('koa'); var app = koa(); app.use(require('koa-trie-router')(app)); app.route('/echo/:word') .post(function