chore: standardize security and quality foundations
This commit is contained in:
@@ -11,6 +11,7 @@ import httpx
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query
|
||||
|
||||
from ..auth import get_current_user
|
||||
from ..api_models import COMMON_ERROR_RESPONSES
|
||||
from ..clients.jellyfin import JellyfinClient
|
||||
from ..db import (
|
||||
add_portal_item_activity,
|
||||
@@ -34,7 +35,12 @@ from ..services.issue_resolution import (
|
||||
from ..services.notifications import send_portal_notification
|
||||
from ..runtime import get_runtime_settings
|
||||
|
||||
router = APIRouter(prefix="/portal", tags=["portal"], dependencies=[Depends(get_current_user), Depends(require_portal_access)])
|
||||
router = APIRouter(
|
||||
prefix="/portal",
|
||||
tags=["portal"],
|
||||
dependencies=[Depends(get_current_user), Depends(require_portal_access)],
|
||||
responses=COMMON_ERROR_RESPONSES,
|
||||
)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
PORTAL_KINDS = {"request", "issue", "feature"}
|
||||
|
||||
Reference in New Issue
Block a user