I modified the get accordingly. Setting the content type did the trick.
from flask import render_template, make_response
class AppointmentController(Resource):
def __init__(self):
pass
def get(self):
headers = {'Content-Type': 'text/html'}
return make_response(render_template('index.html'),200,
headers)