diff --git a/image/temp.jpg b/image/temp.jpg new file mode 100644 index 0000000..876b9fb Binary files /dev/null and b/image/temp.jpg differ diff --git a/superTornado.py b/superTornado.py index 2369217..831b803 100644 --- a/superTornado.py +++ b/superTornado.py @@ -69,10 +69,19 @@ class UnauthorizedHandler(BaseHandler): self.redirect("/") + +class AJAXHandler(BaseHandler): + def get(self): + with open(path, 'rb') as f: + data = f.read() + self.write(data) + + application = tornado.web.Application([ (r"/", MainHandler), (r"/video", VideoHandler), (r"/unauthorized", UnauthorizedHandler), + (r"/ajax", AJAXHandler), ], cookie_secret="1213215656") if __name__ == "__main__": diff --git a/video.html b/video.html index 4d005f2..e6db22c 100644 --- a/video.html +++ b/video.html @@ -7,6 +7,5 @@

Vue camera

-