Skip to content

refactor(api): redesign Settings and Storage API paths and response format#434

Merged
Zheaoli merged 1 commit intomainfrom
refactor/api-settings
Mar 22, 2026
Merged

refactor(api): redesign Settings and Storage API paths and response format#434
Zheaoli merged 1 commit intomainfrom
refactor/api-settings

Conversation

@Zheaoli
Copy link
Copy Markdown
Collaborator

@Zheaoli Zheaoli commented Mar 22, 2026

Summary

  • Rename GET/PUT paths: get-custom-infocustom-info, get-admin-configadmin-config, update-* → PUT on same path
  • Wrap all GET responses in { code, message, data } envelope
  • Update fetcher to auto-unwrap envelope (backward compatible)
  • Update 9 frontend consumers

Recommended merge order: This PR first, then Albums+Images, then Files/Daily+Public.

Test plan

  • Build passes
  • No remaining references to old paths
  • Verify settings pages load and save correctly

🤖 Generated with Claude Code

…ormat

- Rename GET/PUT paths to follow kebab-case, resource-oriented convention
- Wrap all GET responses in { code, message, data } envelope
- Update fetcher to auto-unwrap envelope (backward compatible)
- Update all frontend consumers to use new paths

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
picimpact Ready Ready Preview, Comment Mar 22, 2026 2:17pm

@Zheaoli Zheaoli merged commit 77e003b into main Mar 22, 2026
6 of 7 checks passed
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