lib/habitica_cli/commands/add.rb in habitica_cli-0.0.1 vs lib/habitica_cli/commands/add.rb in habitica_cli-0.1.0

- old
+ new

@@ -2,10 +2,10 @@ # responsible for adding new todos, tasks, and dailies # also for for caching the newly added todo module Commands def self.add(env, type, text) validate_type(type) - response = env.api.post('user/tasks', type: type, text: text) + response = env.api.post('tasks', type: type, text: text) if response.success? task = cache_tasks(env, [response.body], type).first puts "Added #{task['text']} [#{task['cid']}]" else