added resource() function for route grouping