From f3e0f3ff9e37526f8ffaefa6efeaa05ba7ba06d5 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Sun, 28 May 2017 22:25:38 +0200 Subject: [PATCH] Fix backend URLs... --- main.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.rb b/main.rb index c69a89f..837d332 100644 --- a/main.rb +++ b/main.rb @@ -21,7 +21,7 @@ module Excon end end -BACKEND_URL = 'http://127.0.0.1:8000/api/1/' +BACKEND_URL = 'http://inventory.waw.hackerspace.pl/api/1/' CODE_PREFIX = "HTTP://I/" def api(uri) @@ -87,6 +87,8 @@ def render_label(label) pdf.render end +set :bind, '0.0.0.0' + get '/api/1/preview/:label.pdf' do headers["Content-Type"] = "application/pdf; charset=utf8" render_label params["label"]