simple route filtering middleware for ring