use get/post instead of match in routes