set up route on flask backend to take url