You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backend api built with nestjs serves call at /, endpoints looks like /users/me or /auth/login etc.
Before adding AdminBro, call to /auth/login with post body of {"email": "<some-email>", "password": "<some-password>" } works fine.
But when adding a module named Backoffice to my app.module.ts post body is not found when calling /auth/login and throws an exception in the controller.
All calls to AdminBro works fine under /admin
I've narrowed it down to ExpressLoader in this repo which moves jsonParser and urlencodeparser in layer stack below AdminBro router. Commenting this out breaks AdminBro but nestjs api works again.
The text was updated successfully, but these errors were encountered:
Backend api built with nestjs serves call at
/
, endpoints looks like/users/me
or/auth/login
etc.Before adding AdminBro, call to
/auth/login
with post body of{"email": "<some-email>", "password": "<some-password>" }
works fine.But when adding a module named Backoffice to my app.module.ts post body is not found when calling /auth/login and throws an exception in the controller.
All calls to AdminBro works fine under /admin
package.json dependencies used:
"@admin-bro/express": "^3.0.1", "@admin-bro/nestjs": "^1.0.0", "@admin-bro/typeorm": "^1.3.0", "express-formidable": "^1.2.0",
I've narrowed it down to
ExpressLoader
in this repo which moves jsonParser and urlencodeparser in layer stack below AdminBro router. Commenting this out breaks AdminBro but nestjs api works again.The text was updated successfully, but these errors were encountered: