rudamentary routing to allow for the site and api to be hosted off the same domain