Routes
The Onyx theme does not manage routes other than Controllers and Rest API Endpoints.
If you need to create custom routes for your theme or application, consider using one of the WordPress functions and filters:
add_rewrite_rule()
add_rewrite_tag()
generate_rewrite_rules
rewrite_rules_array
template_include
template_redirect
parse_request
request
You can also use some of the solutions below: