Added allowedMethod method to StaticRouter class