lib/devcenter/helpers.rb in devcenter-1.0.7 vs lib/devcenter/helpers.rb in devcenter-1.1.0rc1
- old
+ new
@@ -14,9 +14,17 @@
def search_api_path
"/articles.json"
end
+ def validate_article_path(id)
+ "/api/v1/private/articles/#{id}/validate.json"
+ end
+
+ def update_article_path(id)
+ "/api/v1/private/articles/#{id}.json"
+ end
+
def article_url?(url)
escaped_base_url = devcenter_base_url.gsub('/','\\/')
url.match(/\A#{escaped_base_url}\/articles\/.+/)
true
end
\ No newline at end of file