AltoRouter icon indicating copy to clipboard operation
AltoRouter copied to clipboard

How to route the following /Controllers/Users/show.php

Open ErikThiart opened this issue 1 year ago • 0 comments

Assuming I have the following app directory

App -> Controllers -> User -> show.php

I want to map it like this:

$router->get('/', 'index.php');
$router->get('/about', 'about.php');
$router->get('/contact', 'contact.php');

$router->get('/notes', 'notes/index.php')->only('auth');
$router->get('/note', 'notes/show.php');
$router->delete('/note', 'notes/destroy.php');

ErikThiart avatar Oct 05 '23 09:10 ErikThiart