Update server side handling for todo example
'add todos' in todo example