def post(self, *args, **kwargs): """ Add new entry to ACL. Args: None Request: version: protocol version (1.0) sta: the station address label: a humand d=readable description Example URLs: POST /api/v1/allow """ if "label" in kwargs: RUNTIME.add_allowed(kwargs['sta'], kwargs['label']) else: RUNTIME.add_allowed(kwargs['sta']) self.set_header("Location", "/api/v1/allow/%s" % kwargs['sta'])