talkpython / 100daysofweb-with-python-course

Demo code and resources for our 100 Days of Web in Python Course
https://training.talkpython.fm/courses/explore_100days_web/100-days-of-web-in-python
630 stars 391 forks source link

Days 93-100: @api.route ↑↑ shifts #22

Closed alex-vegan closed 4 years ago

alex-vegan commented 4 years ago

talkpython/100daysofweb-with-python-course/days/093-096-vuejs/movie_svc/views/api_views.py

talkpython/100daysofweb-with-python-course/days/097-100-docker/demo/services/movie_svc/views/api_views.py

@api.route("/api/movie/genre/all") should be placed upper ↑ than @api.route("/api/movie/genre/{genre}")

and

@api.route("/api/movie/top") upper ↑ than @api.route("/api/movie/{imdb_number}")

mikeckennedy commented 4 years ago

Thanks Alex. I think this was a change in responder's interpretation of these routes. It worked in the demo I did, but I see now that it stopped. All fixed.