Fix mediaGen route