moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
294 stars 119 forks source link

File upload route wraps response in array #183

Closed HighSoftWare96 closed 4 years ago

HighSoftWare96 commented 4 years ago

After defining a route with file upload like described here the response of these endpoints are always wrapped inside an array by the gateway.

The only workaround possible is to create an onAfterCall and returning the first element of the response array since the bug is inside the gateway.