Skip to content

Route name override #43

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

Merged
merged 7 commits into from
Apr 18, 2023
Merged

Route name override #43

merged 7 commits into from
Apr 18, 2023

Conversation

too-soon
Copy link

@too-soon too-soon commented Apr 16, 2023

Adds the ability to override a resource route name in controller decorator options, for instance:

@JsonApi(Users, {
  allowMethod: excludeMethod(['deleteRelationship']),
  requiredSelectField: false,
  overrideRoute: 'user',
})
export class ExtendUserController extends JsonBaseController<Users> {}

Fixes #27

@too-soon too-soon marked this pull request as ready for review April 16, 2023 07:56
@too-soon too-soon changed the title Resource name override Route name override Apr 18, 2023
@klerick klerick merged commit b990c56 into klerick:master Apr 18, 2023
@github-actions
Copy link

🎉 This pull request is included in version [email protected] 🎉

The release is available on GitHub release

@github-actions
Copy link

github-actions bot commented Jun 1, 2023

🎉 This pull request is included in version [email protected] 🎉

The release is available on GitHub release

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.

[Question] How can I overrided the resource name?
2 participants