Refactor: Initial code split into includes directory for modularity

- Reorganized backend logic by moving API, authentication, Docker, status, and WebSocket handling into separate modules (api.js, auth.js, docker.js, status.js, websocket.js) within ./includes/
- Converted codebase to ES modules with import/export syntax for modern JavaScript
- Updated index.js to serve as main entry point, importing from ./includes/
- Reduced code duplication and improved readability with modularized functions
- Ensured full functionality preservation, including Docker stats and WebSocket communication
- Updated README to reflect new folder structure and ES module setup
This commit is contained in:
MCHost
2025-06-16 12:30:18 -04:00
parent fb0eb5ed44
commit d38e2ad1f1
8 changed files with 1073 additions and 1533 deletions

1545
server.js

File diff suppressed because it is too large Load Diff