fixing endpoint registration and adding /routes to api server -- not pretty though