@mochabug/adapt-sdk 0.1.5 → 0.1.7

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.
package/README.md CHANGED
@@ -338,7 +338,7 @@ export const router = new ExternalConfiguratorRouter()
338
338
  * @method add
339
339
  * @async
340
340
  */
341
- .add('GET', '(/?)', async (req, api) => {
341
+ .add('GET', '/', async (req, api) => {
342
342
  return await readFile(api, 'index.html', req.headers.get('Accept-Encoding'));
343
343
  })
344
344
 
@@ -348,8 +348,8 @@ export const router = new ExternalConfiguratorRouter()
348
348
  * @method add
349
349
  * @async
350
350
  */
351
- .add('GET', '(.*)', async (req, api, route) => {
352
- return await readFile(api, route.path, req.headers.get('Accept-Encoding'));
351
+ .add('GET', '{*path}', async (req, api, route) => {
352
+ return await readFile(api, route.params.path, req.headers.get('Accept-Encoding'));
353
353
  });
354
354
 
355
355
  ```