This seems like it should be so simple. The functions to handle the routes are in a separate file. However after requiring that file and passing the function pointer to the