@bluemarble/bm-components 2.4.3 → 2.4.4
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5393,7 +5393,7 @@ var _ApiHelper = class _ApiHelper {
|
|
|
5393
5393
|
return async (req, res) => {
|
|
5394
5394
|
const methods = factory(req, res);
|
|
5395
5395
|
const handler = methods[req.method];
|
|
5396
|
-
if (!handler)
|
|
5396
|
+
if (!handler) return res.status(405).json({ error: "M\xE9todo inv\xE1lido" });
|
|
5397
5397
|
const methodWithMiddlewares = this.middlewares.reduce((acc, fn) => {
|
|
5398
5398
|
return fn(acc, options);
|
|
5399
5399
|
}, handler);
|