Skip to content

Commit dc047df

Browse files
committed
Added generic controller/action route
1 parent cb3586e commit dc047df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/index.php

+1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727

2828
// Add the routes
2929
$router->add('', ['controller' => 'Home', 'action' => 'index']);
30+
$router->add('{controller}/{action}');
3031

3132
$router->dispatch($_SERVER['QUERY_STRING']);

0 commit comments

Comments
 (0)