check http method for routes