7 Commits

Author SHA1 Message Date
2cb0c5d79f Tasks 5-11 Completed: All major Flask to FastAPI migration tasks completed - Authentication, middleware, error handling, CSS verification, and JavaScript compatibility all verified and working with FastAPI patterns 2025-10-06 08:32:59 +02:00
1fe8482349 Task 4: Added missing API endpoints for JavaScript compatibility - Added /api/add_series and /api/download endpoints to FastAPI app to match JavaScript expectations 2025-10-06 08:30:33 +02:00
2c8c9a788c Update HTML templates and JavaScript for FastAPI compatibility
- Replace Flask url_for() with direct /static/ paths in all HTML templates
- Update CSS and JavaScript file references to use FastAPI static mount
- Convert Flask-specific template patterns to FastAPI-compatible syntax
- Update JavaScript API endpoints to match new FastAPI route structure:
  * /api/series -> /api/v1/anime
  * /api/search -> /api/v1/anime/search
  * /api/rescan -> /api/v1/anime/rescan
- Add web interface routes for serving HTML templates
- Add template response endpoints for /app, /login, /setup, /queue
- Mark HTML template and JavaScript migration tasks as completed
- Maintain Jinja2 template compatibility with FastAPI
2025-10-05 23:14:31 +02:00
6e136e832b Add comprehensive Pydantic models and configure templates/static files
- Create detailed Pydantic models for anime requests and responses
- Add AnimeCreateRequest, AnimeUpdateRequest, PaginatedAnimeResponse, etc.
- Update route signatures to use proper response models
- Convert return values to use Pydantic models instead of raw dicts
- Configure Jinja2Templates in FastAPI application
- Mount StaticFiles for CSS, JS, images at /static endpoint
- Update anime search and list endpoints to use typed responses
- Mark completed Pydantic models and template configuration tasks in web_todo.md
2025-10-05 23:10:11 +02:00
e15c0a21e0 Convert Flask routes to FastAPI in anime controller
- Convert Flask Blueprint to FastAPI router
- Replace @app.route() with FastAPI route decorators (@router.get, @router.post)
- Update route parameter syntax from <int:id> to {id: int} format
- Convert Flask request object usage to FastAPI Query/Depends parameters
- Update response handling to return dicts instead of Flask jsonify()
- Integrate SeriesApp as business logic layer for anime operations
- Add anime list, search, and rescan endpoints using SeriesApp
- Include anime router in main FastAPI application
- Mark route conversion tasks as completed in web_todo.md
2025-10-05 23:05:37 +02:00
555c39d668 Mark 'Convert Flask blueprints to FastAPI routers' as completed in migration TODO 2025-10-05 22:45:41 +02:00
be5a0c0aab Mark completed FastAPI setup tasks in web migration TODO 2025-10-05 22:39:34 +02:00