refactor: decouple API handlers from _-prefixed service internals (closes #73) by bradjin8 · Pull Request #83 · cppalliance/cppa-cursor-browser · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions api/export_api.py
10 changes: 10 additions & 0 deletions api/flask_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Shared Flask request/config helpers for API blueprints."""

from __future__ import annotations

from flask import current_app


def exclusion_rules() -> list:
"""Return loaded exclusion rules from app config (empty list when unset)."""
return current_app.config.get("EXCLUSION_RULES") or []
30 changes: 15 additions & 15 deletions api/workspaces.py
Loading
Loading