slashes for non api routes only

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