Ejemplo n.º 1
0
    def on_post(self, req, resp):
        finder = Finder()
        raw = req.stream.read()
        data = json.loads(raw)

        resp.status = falcon.HTTP_200
        resp.set_header('Access-Control-Allow-Origin', '*')
        resp.body = (finder.findSingleDevice(data['MacAddress']))