Generalize resource routes