Closed vitorvr closed 6 years ago
Hi, I need to send 2 files (index.html and index.js). Tried that:
router.get('/', async (ctx) => { await send(ctx, ctx.path, { root: __dirname + '/public' }); });
But I got Not found
Not found
When I try to send /public/index.html works, but is missing index.js.
/public/index.html
Thanks!
IMO, you need koajs/static
Hi, I need to send 2 files (index.html and index.js). Tried that:
router.get('/', async (ctx) => { await send(ctx, ctx.path, { root: __dirname + '/public' }); });
But I got
Not found
When I try to send
/public/index.html
works, but is missing index.js.Thanks!