Add api route for getting todos.