I am working with Codeigniter 4, Right now i want to execute simple function but i am getting following error
404 page not found
Here is my routes.php
$routes->post('login', 'Form::login');
Here is my “Form Controller”,Where i am wrong ?
public function login()
{
echo "Hello world";
}
In browser i type following url
localhost:8080/login