The service is used for TODO lists. Implement the put method for adding new tasks and changing the old ones.
The next task is passed in the request body with the key todo. Another key passed in the body is new. The value can be True or False. If the task is new, add it at the end of the list; if it's not, change the task with the id index.
The response should be a redirection to the / page.