Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add V2 API endpoint for retrieving node storage location #878

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Yiakman
Copy link
Contributor

@Yiakman Yiakman commented Feb 19, 2025

Implement a new API endpoint to fetch the node's storage location, including:

  • New NodeCommand variant for storage location retrieval
  • Handler for the /v2/storage_location GET route
  • Implementation of v2_api_get_storage_location method in Node

Implement a new API endpoint to fetch the node's storage location, including:
- New NodeCommand variant for storage location retrieval
- Handler for the /v2/storage_location GET route
- Implementation of v2_api_get_storage_location method in Node
- Modify NODE_STORAGE_PATH environment variable handling to use Option
- Update storage location retrieval to handle potential None cases
- Adjust storage location API response to wrap result in a JSON object
- Use tokio::fs::canonicalize to resolve absolute path for storage location
- Simplify storage location retrieval logic
- Remove hardcoded filesystem subdirectory
- Ensure more robust path handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant