Override website route rules

I’d like to override a website route rule in ERPNext hooks.py.

Currently ERPNext generates this for the /invoices route:

I want to customize the list of invoices to add some additional fields as well as change to layout.