Skip to content

Commit

Permalink
Temporarily point warehouse to static site
Browse files Browse the repository at this point in the history
  • Loading branch information
nmohoric committed Feb 10, 2018
1 parent 92e459f commit 48547b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cog/bundle/warehouse.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
defmodule Cog.Bundle.Warehouse do
@registry_url "https://warehouse.operable.io"
@registry_url "https://warehouse.cog.bot"

def get_config(bundle, version) do
headers = ["Accepts": "application/json"]
response = HTTPotion.get(@registry_url <> "/api/bundles/#{bundle}/#{version}", headers: headers)
response = HTTPotion.get(@registry_url <> "/api/bundles/#{bundle}/#{version}.json", headers: headers)

case response do
%HTTPotion.Response{status_code: 200, body: body} ->
Expand Down

0 comments on commit 48547b6

Please sign in to comment.