Add get notes api endpoint and change content of index page.