10 Commits

Author SHA1 Message Date
317066703b cors 2025-07-19 10:39:08 +01:00
c8a9cae55e fix the imports 2025-07-19 09:40:31 +01:00
984b3a62f9 dns on config page 2025-07-19 09:32:45 +01:00
4303f568b3 modify dns in config 2025-07-19 09:16:21 +01:00
2ef573d63c manual check on config page 2025-07-19 09:05:25 +01:00
14490bd7d2 run at 10am 2025-07-18 18:03:43 +01:00
c79a908281 extend notifications 2025-07-18 17:51:48 +01:00
b3054b3dda database connection pooling 2025-07-14 18:32:48 +01:00
8828803754 working config.py setup 2025-07-14 13:42:58 +01:00
4352004ed3 feat(app): restructure as a modern Flask API
This commit refactors the entire backend application into a more structured and maintainable Flask project. It introduces an application factory pattern, consolidates routes into a blueprint, and implements a robust authentication and database layer.

- Introduces a Flask application factory (`create_app` in `main.py`) for better organization and testability.
- Consolidates all API routes into a single blueprint (`routes/api.py`) for modularity.
- Implements a new basic authentication system using a decorator (`@requires_basic_auth`) to secure all endpoints.
- Refactors the database access layer with standardized query execution and connection handling.
- Adds new modules for core logic, including an account checker (`checker.py`) and user retrieval (`get_users.py`).
- Updates the VSCode launch configuration to support the new Flask application structure.

BREAKING CHANGE: The application has been completely restructured. The old `server.py` entry point is removed. The application should now be run via the app factory in `main.py`. All API endpoints now require basic authentication.
2025-07-13 19:40:04 +01:00