feat(fc2a): add /api/tags endpoints (autocomplete, create, image association)

Thin async blueprint delegating to TagService. Returns 400 with the
TagValidationError message on bad kind/fandom combos so the frontend can
surface the reason. List/add/remove endpoints scoped under
/api/images/<id>/tags follow REST conventions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-14 12:10:10 -04:00
parent fd8cf83003
commit 0e66368010
3 changed files with 186 additions and 2 deletions
+2 -2
View File
@@ -15,5 +15,5 @@ api_bp.add_url_rule("/health", view_func=health.get_health, methods=["GET"])
def all_blueprints() -> list[Blueprint]:
from .gallery import gallery_bp
# FC-2a additions: tags, settings, import_admin land in later tasks
return [api_bp, gallery_bp]
from .tags import tags_bp
return [api_bp, gallery_bp, tags_bp]