Skip to content
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

{"message":"not_found"} after following quick start #13

Closed
smarques84 opened this issue Jan 15, 2017 · 7 comments
Closed

{"message":"not_found"} after following quick start #13

smarques84 opened this issue Jan 15, 2017 · 7 comments

Comments

@smarques84
Copy link

I just tried your started kit and followed every step but after i run:

curl -X POST -F "email=johndoword=johndoe" "http://localhost:8001/auth/login"

I always get:
{"message":"not_found"}

Did i miss something?

@cleitonsouza
Copy link
Contributor

Maybe php artisan migrate --seed ?

@smarques84
Copy link
Author

I already ran that command and checked if the database has the the user and its inserted correctly.

@cleitonsouza
Copy link
Contributor

cleitonsouza commented Jan 15, 2017

Test with api/auth/login.

Try setting API_PREFIX in your env file.

@krisanalfa
Copy link
Owner

Thanks to @cleitonsouza. I'm sure it's all about your Dingo configuration. Change your .env file. Change API_PREFIX to something like this:

API_PREFIX=api

Maybe I'm missing documentation for this info. Can someone send me a PR?

@casperwitting
Copy link

I've had this issue also, fixed it by adding /api in the url:

http://localhost:8001/api/auth/login

@krisanalfa please update the readme with this

@krisanalfa
Copy link
Owner

@casperwitting Ok, can you send me a PR to update current readme? I'm lil busy right now.

@smarques84
Copy link
Author

smarques84 commented Jan 17, 2017

Can confirm to make it work you need to add the /api to the url like @casperwitting said, just setting
API_PREFIX=api in the .env file is not enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants