8 Commits

Author SHA1 Message Date
7a71715183 backup 2025-10-12 18:05:31 +02:00
57d49bcf78 Fix setup to login redirect issue
- Fix setup.html to use redirect_url from API response instead of hardcoded '/'
- Add database creation (aniworld.db, cache.db) during setup process
- Setup now properly creates all required files for validation
- After setup completion, users are correctly redirected to /login
- Tested: setup API returns correct redirect_url, database files created, redirect works
2025-10-06 13:32:35 +02:00
87c4046711 Implement comprehensive application flow tests
- Add test_application_flow.py with 22 test cases covering:
  * Setup page functionality and validation
  * Authentication flow and token handling
  * Main application access controls
  * Middleware flow enforcement
  * Integration scenarios
- Fix TestClient redirect following issue in tests
- Update ServerTodo.md and TestsTodo.md to mark completed items
- All application flow features now fully tested (22/22 passing)
2025-10-06 12:53:37 +02:00
3f98dd6ebb Implement application setup and flow middleware
- Add SetupService for detecting application setup completion
- Create ApplicationFlowMiddleware to enforce setup  auth  main flow
- Add setup processing endpoints (/api/auth/setup, /api/auth/setup/status)
- Add Pydantic models for setup requests and responses
- Integrate middleware into FastAPI application
- Fix logging paths to use ./logs consistently
- All existing templates (setup.html, login.html) already working
2025-10-06 12:48:18 +02:00
082d725d91 Test web routes and fix import dependencies - Added missing packages and verified route functionality 2025-10-06 09:03:37 +02:00
85f2d2c6f7 cleanup 2 2025-10-05 22:22:04 +02:00
fe2df1514c cleanup 2025-10-05 21:56:33 +02:00
d30aa7cfea latest api use 2025-10-05 21:42:08 +02:00