sumba 2.37.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,9 +3,9 @@ const get = {
3
3
  url: '/your-stuff/download/get/*',
4
4
  handler: async function (req, reply) {
5
5
  const { importModule } = this.app.bajo
6
- const handler = await importModule('waibu:/lib/handle-download.js')
6
+ const { download } = await importModule('waibu:/lib/helper.js', { asDefaultImport: false })
7
7
  const file = `${this.downloadDir}/${req.params['*']}`
8
- return await handler.call(this, file, req, reply)
8
+ return await download.call(this, file, req, reply)
9
9
  }
10
10
  }
11
11