![]() |
02-27-2022, 08:17 PM
(This post was last modified: 02-27-2022, 08:18 PM by spreaderman. Edit Reason: making pretty ) PHP Code: $routes->group('api', function($routes){ PHP Code: namespace App\Controllers\Api\v1; Above produces below if accessed from URL: https://api.example.com/api/create-test and POSTMAN (verb POST) 404 - File Not Found Create-test is not a valid controller name My directory structure is; Code: app/Controllers/Api/v1/EmployeeController.php If I change the verb to GET, I get "okay". Same with POSTMAN. PHP Code: $routes->group('api', function($routes){ I have had this problem many weeks so appreciate your help! |
Welcome Guest, Not a member yet? Register Sign In |