set http method for all routes