Made changes to the main.py file to add a resources handler