@mochabug/adapt-sdk 0.1.5 → 0.1.6
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 +3 -3
- package/dist/cjs/api.cjs.map +2 -2
- package/dist/cjs/frontend.cjs +1 -1
- package/dist/cjs/frontend.cjs.map +3 -3
- package/dist/cjs/router.cjs.map +2 -2
- package/dist/esm/api.mjs.map +2 -2
- package/dist/esm/frontend.mjs +1 -1
- package/dist/esm/frontend.mjs.map +3 -3
- package/dist/esm/router.mjs.map +2 -2
- package/dist/frontend.d.ts +15 -6
- package/dist/frontend.d.ts.map +1 -1
- package/package.json +1 -1
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', '
|
|
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', '
|
|
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
|
```
|