add json middleware and datetime library
/api/books-by-year returns what you expect, as json