Handle DELETE requests
(self)
| 104 | self.send_error(404, "Not Found") |
| 105 | |
| 106 | def do_DELETE(self): |
| 107 | """Handle DELETE requests""" |
| 108 | parsed_path = urlparse(self.path) |
| 109 | path = parsed_path.path |
| 110 | |
| 111 | if path.startswith('/api/v1/cleanup'): |
| 112 | self.handle_cleanup() |
| 113 | else: |
| 114 | self.send_error(404, "Not Found") |
| 115 | |
| 116 | def handle_status(self): |
| 117 | """Respond to /api/status with temperature and humidity""" |
nothing calls this directly
no test coverage detected