removed auth on database endpoints
This commit is contained in:
+8
-4
@@ -85,17 +85,21 @@ class SimpleAuthMiddleware(BaseHTTPMiddleware):
|
|||||||
"/api/movies", # Web API endpoints
|
"/api/movies", # Web API endpoints
|
||||||
"/api/series",
|
"/api/series",
|
||||||
"/api/episodes",
|
"/api/episodes",
|
||||||
"/api/dashboard",
|
"/api/dashboard"
|
||||||
"/database/" # Database management endpoints
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Routes that are always public (webhooks, health checks)
|
# Routes that are always public (webhooks, health checks, API endpoints)
|
||||||
self.public_routes = [
|
self.public_routes = [
|
||||||
"/webhook/",
|
"/webhook/",
|
||||||
"/health",
|
"/health",
|
||||||
"/ping",
|
"/ping",
|
||||||
"/api/v1/health",
|
"/api/v1/health",
|
||||||
"/api/v1/metrics"
|
"/api/v1/metrics",
|
||||||
|
"/database/", # Database management endpoints (API access)
|
||||||
|
"/manual/", # Manual scan endpoints (API access)
|
||||||
|
"/debug/", # Debug endpoints (API access)
|
||||||
|
"/test/", # Test endpoints (API access)
|
||||||
|
"/bulk/" # Bulk operation endpoints (API access)
|
||||||
]
|
]
|
||||||
|
|
||||||
async def dispatch(self, request: Request, call_next):
|
async def dispatch(self, request: Request, call_next):
|
||||||
|
|||||||
Reference in New Issue
Block a user