controller부분 수정(__init__.py, api.py, index.html)