import tornado.ioloop
import tornado.web

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")

def make_app():
    return tornado.web.Application([
        (r"/", MainHandler),
    ])

if __name__ == "__main__":
    app = make_app()
    app.listen(8888)
    tornado.ioloop.IOLoop.current().start()

@@ -33,16 +33,28 @@
 nado.web
+%0Aimport json
 %0A%0Aclass 
@@ -149,16 +149,233 @@
 orld%22)%0A%0A
+class GetProblemRequest(tornado.web.RequestHandler):%0A    def post(self):%0A        data = json.loads(self.request.body.decode('utf-8'))%0A        print('Got JSON data:', data)%0A        self.write(%7B 'got' : 'your data' %7D)%0A%0A
 def make
@@ -419,16 +419,59 @@
 ation(%5B%0A
+        (r%22/problem/%22, GetProblemRequest),%0A
         

Update mathdeck server