| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR adds a public sync “discovery” endpoint under the existing Sync router to support custom server setup, exposing a client-facing sync URL plus file-storage capability/quota, and introduces a default file storage quota setting.
Changes:
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tests/api/routes/test_sync.py | Adds contract test for the new public sync settings endpoint. |
| papyrus/schemas/sync.py | Adds response models for sync settings and file-storage capability/quota. |
| papyrus/config.py | Adds default file storage quota setting. |
| papyrus/api/routes/sync.py | Adds GET /settings handler returning the discovery payload. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| supported: bool | ||
| quota_bytes: int |
| data_sync_url: str | ||
| file_storage: FileStorageSettings |
| settings = get_settings() | ||
| return DataSyncSettingsResponse( | ||
| data_sync_url=settings.powersync_service_url, |
| powersync_token_expire_minutes: int = 5 | ||
| powersync_service_url: str = "http://localhost:8081" | ||
| powersync_service_port: int = 8081 | ||
| file_storage_quota_bytes: int = 1_073_741_824 |
| Back | FazBrowse Home | New Git URL |
Summary
Validation