-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use nestjs and admin-bro in the same app due to body-parser and formidable. #5
Comments
Same here. How about adding admin panel as microservice? |
Is this related to #7? I was able to overcome similar auth issues by using the approach outlined in #7 (comment) |
@maxpeterson its working for me also with your setup. Thanks! |
you must add app.use(express.json()); to index.js |
node:internal/modules/esm/resolve:257 |
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:
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: