diff --git a/admin/routes.php b/admin/routes.php index 00b6419a..f19ef4ef 100644 --- a/admin/routes.php +++ b/admin/routes.php @@ -133,6 +133,10 @@ return [ 'path' => '/users/{user}/profile/', 'action' => '\Formwork\Admin\Controllers\UsersController@profile', 'methods' => ['GET', 'POST'] + ], + 'admin.notfound' => [ + 'path' => '/{route}/', + 'action' => '\Formwork\Admin\Controllers\ErrorsController@notFound' ] ], 'filters' => [