lib/mutx/routes.rb in mutx-0.1.58 vs lib/mutx/routes.rb in mutx-0.1.59

- old
+ new

@@ -241,9 +241,10 @@ on "api/repos/:name" do |name| query_string = Mutx::Support::QueryString.new req output = Mutx::API::Repo.get_data(name, query_string.raw) (res.status = 200 + output.delete("repo_token") res.write output.to_json) if !output.to_s.include? "success=>false" (res.status = 404 res.write "Not Found => status 404") if output.to_s.include? "success=>false" Mutx::Support::Log.debug "STATUS CODE => #{res.status}" end \ No newline at end of file