lib/mutx/API/repo.rb in mutx-0.2.1 vs lib/mutx/API/repo.rb in mutx-0.2.2

- old
+ new

@@ -77,11 +77,14 @@ else {action:"update", success:false, message:"Repo could not be updated"} end end - def self.delete param_id - Mutx::Database::MongoConnector.delete_custom_param param_id + def self.delete_repo repo_id + Mutx::Database::MongoConnector.delete_repo repo_id + success = true + message = "Repo deleted!" + {success:success, message:message} end end end end