Finished router middleware