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

feat(router): add FS group syntax #615

Merged
merged 3 commits into from
Aug 29, 2024
Merged

feat(router): add FS group syntax #615

merged 3 commits into from
Aug 29, 2024

Conversation

kyranet
Copy link
Member

@kyranet kyranet commented Aug 26, 2024

This allows for grouping routes together in the router:

-| routes/
---| information.get.ts
---| (legal)/
-----| license.get.ts
-----| privacy.get.ts

This will produce the following routes:

  • GET /information
  • GET /license
  • GET /privacy

The legal group is ignored for purposes of the
route URL path.

This allows for grouping routes together in the router:

```ts
-| routes/
---| information.get.ts
---| (legal)/
-----| license.get.ts
-----| privacy.get.ts
```

This will produce the following routes:

- `GET /information`
- `GET /license`
- `GET /privacy`

The `legal` group is ignored for purposes of the
route URL path.
Copy link

@kyranet kyranet merged commit 7ba75bc into main Aug 29, 2024
8 checks passed
@kyranet kyranet deleted the feat/api/add-group-syntax branch August 29, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants