-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
masonite api #736
Comments
Can you test if your routes are correctly displayed in production with the Are you using a proxy like Nginx ? |
masonite.exceptions.exceptions.MissingContainerBindingNotFound: routes.api.location key was not found in the container |
but api/users give 404 |
masonite api not working on subdomain |
any solution |
As per the error shown in your screenshot the routes.api.location binding is missing. Additionally check your APP_URL in config.application on your production system as this needs to be the full base endpoint as I understand it ie Personally I found this quite limiting when it comes to deploying to multiple environments (ie local, dev, staging, prod) as I had to manually modify each env config for specific usage. |
Describe the bug
i am using masonite api . its working perfect on localhost. but when i go to production then its showing
api routes not found 404.
Expected behaviour
i am using masonite api . its working perfect on localhost. but when i go to production then its showing
api routes not found 404.
Steps to reproduce the bug
No response
Screenshots
No response
OS
Linux
OS version
Linux
Browser
No response
Masonite Version
4.6.1
Anything else ?
No response
The text was updated successfully, but these errors were encountered: