koajs / send

Transfer static files
MIT License
429 stars 87 forks source link

How to send two files? #112

Closed vitorvr closed 6 years ago

vitorvr commented 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

When I try to send /public/index.html works, but is missing index.js.

Thanks!

haoxins commented 6 years ago

IMO, you need koajs/static