[SOLVED] RESTFul routes with resource not found |
Hi,
I'm currently creating a new RESTfull endpoint for relations, but something seems to be going wrong and i've got no idea if this is something on my end. Package information
Using the following from the documentation: https://codeigniter4.github.io/userguide...oller-used But on the endpoint the following error occurres, and i'm 1000% shure the file is there. Manually this is no problem, but this requires each endpoint to be set in the routes. Error: "message": "Controller or its method is not found: \\App\\Outhands\\Relations\\Controllers\\API\\RelationResource::new", Partial code: PHP Code: $routes->group('api/v1', ['filter' => 'tokens'], function($routes) { Did i misunderstood the documentation or does this seem to be a bug in CI4? update Apparently i've misspelled the controller, my issue has been resolved.
Please add [SOLVED] to the Title of this post.
Thank you. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
No Problem.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |