Commit a77d7cda authored by Antek Grzanka's avatar Antek Grzanka

Relative path to API.

parent e9237b34
...@@ -89,8 +89,7 @@ ...@@ -89,8 +89,7 @@
document.getElementById('widget').innerHTML = xhr.response; document.getElementById('widget').innerHTML = xhr.response;
} }
} }
//xhr.open('GET', 'http://localhost:8090/view', true); xhr.open('GET', 'view', true);
xhr.open('GET', 'http://smog.telemabk.pl/view', true);
xhr.send(null); xhr.send(null);
}); });
......
...@@ -62,6 +62,7 @@ def make_app(): ...@@ -62,6 +62,7 @@ def make_app():
return tornado.web.Application([ return tornado.web.Application([
(r"/view", MainHandler), (r"/view", MainHandler),
(r'/()', tornado.web.StaticFileHandler, {'path': '/home/smok/smogonet/index.html'}) (r'/()', tornado.web.StaticFileHandler, {'path': '/home/smok/smogonet/index.html'})
#(r'/()', tornado.web.StaticFileHandler, {'path': 'index.html'})
]) ])
if __name__ == "__main__": if __name__ == "__main__":
......
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