The API result at /date is giving an {"message": "Internal server error"} error. /hello is successfully returning 'hello world'.
The ultimate goal is to return the number of days passed so far this year.
'''
from chalice import Chalice
from datetime import date
app = Chalice(app_name='days')
app.debug = True
@app.route('/hello')
def index():
return {'hello': 'world'}
@app.route('/date')
def days():
return date.today()
'''