Changing main.py to serve URLs correctly