fixed getAll in router