updated api paths in flask