regex parameter routing based on type