added support to restrict server side routes by http method