(self)
| 316 | self._send_json(404, {"status": "not found"}) |
| 317 | |
| 318 | def do_GET(self): |
| 319 | if self.path == "/rules": |
| 320 | with _lock: |
| 321 | rules = dict(_active_rules) |
| 322 | self._send_json(200, {"rules": rules}) |
| 323 | else: |
| 324 | self._send_json(404, {"status": "not found"}) |
| 325 | |
| 326 | def log_message(self, format, *args): |
| 327 | pass # Suppress default access logs |
nothing calls this directly
no test coverage detected