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

Task 12 doesn't pass (because of wrong Controller) #1765

Open
ToniMoldovan opened this issue May 22, 2024 · 3 comments
Open

Task 12 doesn't pass (because of wrong Controller) #1765

ToniMoldovan opened this issue May 22, 2024 · 3 comments

Comments

@ToniMoldovan
Copy link

This is for the ones (like I was) that finished all tasks but the final one (12). It took me about 40mins to figure this out.

Solution: watch carefully the app\Http\Controllers folder. There is a special one called Api.

@AnsarMahir
Copy link

I'm still not being able to figure it out mate :)

@AymaneOnline
Copy link

@AnsarMahir what @ToniMoldovan has said is correct, when defining the route you need to import the correct TaskController because there is two of them. You need the one inside the App\Http\Controllers\Api\V1 folder.

@ivanpujianto
Copy link

and remember : By default, the api.php route file is already prefixed with api, so you don't need to manually add the prefix for "api".

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

No branches or pull requests

4 participants