Updated code example, before routes was dependent on how they are declared in the file, with new sorting of routes they are not. So we can have this order of the functions now and it still gives the same result.