Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(router,server,cli): add support for array syntax with server expo…
…rts (#27462) # Why - fix #27456 <!-- Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests. --> # How - add support for API routes to match array syntax variations. - add support for exporting each unique nested variation of HTML routes for server hosting. <!-- How did you build this feature or fix this bug and why? --> # Test Plan - Added extensive tests for the new logic in the server manifest creation, html collection, and e2e server requesting. - I've also updated the CLI collection tests to use the same manifest mock creation as the integration navigation tests. <!-- Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction. --> # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
- Loading branch information
Showing
30 changed files
with
770 additions
and
297 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
apps/router-e2e/__e2e__/server/app/(a,b)/multi-group-api+api.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** @type {import('expo-router/server').RequestHandler} */ | ||
export function GET() { | ||
return new Response( | ||
JSON.stringify({ | ||
value: 'multi-group-api-get', | ||
}) | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Page() { | ||
return <div data-testid="multi-group">Beta</div>; | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.