Exposing REST APIs using a Router URL

Instead of using router have you tried using SEO redirect from the settings?