Commit 227f10f0 authored by Nivaldo Neto's avatar Nivaldo Neto

change API request URL

parent a07ac940
class ActivityGalleryPlugin::Request
class << self
def request(method, url, body, jwt)
base_url = "https://devapi.aprendizagemcriativa.org/"
base_url = "https://api.aprendizagemcriativa.org/"
uri = URI.parse(base_url + url)
request = "Net::HTTP::#{method.to_s.camelize}".constantize.new(uri)
request.content_type = "application/json"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment