slashes for non api routes only

slashes causes a 301 Redirect on all api GET requests
this commit is to make slashes only work on non /api/ GET requests