[codex] Add public mobile API compatibility routes#3
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/public/v1/*read routes expected by the Feedback mobile SDK for posts, boards, comments, changelog, and help content.boardIdworks for/api/public/v1/posts.Root Cause
The deployed backend and current
mainonly exposed the authenticated/api/v1/*API plus portal/server-function paths. The iOS SDK calls/api/public/v1/*, sohttps://feedback.opencoven.ai/api/public/v1/postsreturned the web app 404 HTML instead of JSON.Test Plan
git diff --checkbunx vitest run apps/web/src/routes/api/public/v1/posts/__tests__/index.test.ts apps/web/src/routes/api/public/v1/boards/__tests__/index.test.ts 'apps/web/src/routes/api/public/v1/posts/__tests__/$postId.test.ts' 'apps/web/src/routes/api/public/v1/posts/__tests__/$postId.comments.test.ts' apps/web/src/routes/api/public/v1/changelog/__tests__/index.test.ts apps/web/src/routes/api/public/v1/help/__tests__/categories.test.ts 'apps/web/src/routes/api/public/v1/help/articles/__tests__/$slug.test.ts'bunx eslint apps/web/src/lib/server/domains/posts/post.public.ts apps/web/src/routes/api/public/v1/posts/index.ts 'apps/web/src/routes/api/public/v1/posts/$postId.ts' 'apps/web/src/routes/api/public/v1/posts/$postId.comments.ts' apps/web/src/routes/api/public/v1/boards/index.ts apps/web/src/routes/api/public/v1/changelog/index.ts apps/web/src/routes/api/public/v1/help/categories.ts 'apps/web/src/routes/api/public/v1/help/articles/$slug.ts' apps/web/src/routes/api/public/v1/posts/__tests__/index.test.ts 'apps/web/src/routes/api/public/v1/posts/__tests__/$postId.test.ts' 'apps/web/src/routes/api/public/v1/posts/__tests__/$postId.comments.test.ts' apps/web/src/routes/api/public/v1/boards/__tests__/index.test.ts apps/web/src/routes/api/public/v1/changelog/__tests__/index.test.ts apps/web/src/routes/api/public/v1/help/__tests__/categories.test.ts 'apps/web/src/routes/api/public/v1/help/articles/__tests__/$slug.test.ts'bun run typecheckbun run buildDeployment Note
After merge, Railway needs to redeploy
feedback.opencoven.ai. Then verifyhttps://feedback.opencoven.ai/api/public/v1/postsreturns JSON instead of the web app 404 HTML.