Hello,
I’m trying to write a small project right now.
I am facing a small problem, the creation of a page accessible to the public.
I have read through the documentation unfortunately I find this part particularly unclear.
I have already created the route :
return [
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#indexPOST', 'url' => '/', 'verb' => 'POST'],
['name' => 'page#get', 'url' => '/{client}', 'verb' => 'GET']
]
];
And add the necessary prerequisites when calling the function :
/**
* @NoAdminRequired
* @publicpage
* @NoCSRFRequired
*/
public function get() {
return $this->index();
}
Could you enlighten me on how to create a page accessible to the public without authentication?