Router static file fix

Fixes #370 by checking for a static file before returning the 405 error