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
44 changes: 0 additions & 44 deletions .env

This file was deleted.

4 changes: 0 additions & 4 deletions backend/app/api/controllers/search_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ async def search_all_providers(
self,
user_id: uuid.UUID,
query: str,
search_in_content: bool = True,
max_file_size: int = 10 * 1024 * 1024,
) -> JSONResponse:
try:
if not query or not query.strip():
Expand All @@ -115,8 +113,6 @@ async def search_all_providers(
results = await self.service.search_all_providers(
user_id=user_id,
search_query=query,
search_in_content=search_in_content,
max_file_size=max_file_size,
)

return self._success(
Expand Down
11 changes: 1 addition & 10 deletions backend/app/api/routes/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,12 @@
controller = SearchController()


@router.get("/files")
@router.get("/search-files")
async def search_all_providers(
query: str = Query(..., description="Search query string (e.g., 'asad')"),
search_in_content: bool = Query(
True, description="Whether to search inside file contents"
),
max_file_size: int = Query(
10 * 1024 * 1024,
description="Maximum file size to search content in bytes (default: 10MB)",
),
user_id: uuid.UUID = Depends(get_current_user_id),
) -> JSONResponse:
return await controller.search_all_providers(
user_id=user_id,
query=query,
search_in_content=search_in_content,
max_file_size=max_file_size,
)
4 changes: 4 additions & 0 deletions backend/app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,15 @@ def r2_boto3_config(self) -> dict[str, Any]:
GOOGLE_DRIVE_RESPONSE_TYPE: str | None = None
GOOGLE_DRIVE_PROMPT: str | None = None
GOOGLE_DRIVE_ACCESS_TYPE: str | None = None
GOOGLE_DRIVE_URL: str | None = None

# Microsoft OAuth2 settings for OneDrive integration
MICROSOFT_CLIENT_ID: str | None = None
MICROSOFT_CLIENT_SECRET: str | None = None
MICROSOFT_REDIRECT_URI: str | None = None
MICROSOFT_TENANT_ID: str | None = None
MICROSOFT_URL: str | None = None
MICROSOFT_GRAPH_URL: str | None = None

# Dropbox OAuth2 settings for Dropbox integration
DROPBOX_CLIENT_SECRET: str | None = None
Expand All @@ -179,6 +182,7 @@ def r2_boto3_config(self) -> dict[str, Any]:
DROPBOX_SCOPE: str | None = None
DROPBOX_RESPONSE_TYPE: str | None = None
DROPBOX_AUTHORIZATION_URL: str | None = None
DROPBOX_URL: str | None = None

@computed_field # type: ignore[prop-decorator]
@property
Expand Down
Loading
Loading