app: refactor upload handler registration
Move upload handler registration out of the file manager. Register the primary hander in the app module, and the Octoprint Comptaiblity handler in octoprint_compat. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
@@ -87,9 +87,6 @@ class FileManager:
|
||||
transports=["websocket"])
|
||||
# register client notificaitons
|
||||
self.server.register_notification("file_manager:filelist_changed")
|
||||
# Register APIs to handle file uploads
|
||||
self.server.register_upload_handler("/server/files/upload")
|
||||
self.server.register_upload_handler("/api/files/local")
|
||||
|
||||
self.server.register_event_handler(
|
||||
"server:klippy_identified", self._update_fixed_paths)
|
||||
|
Reference in New Issue
Block a user