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

Add routing method to remove search route #237

Merged

Conversation

v-radev
Copy link

@v-radev v-radev commented Oct 11, 2023

This PR introduces a new method called withoutSearch() which is similar to the withoutBatch() method and removes the search endpoint from the resource declaration.
I know its pretty easy to do ->except('search'), but this overwrites the default except values, so you have to do ->except(['search', 'restore']) at the least.
I added tests to cover this and I didn't find any for the withoutBatch(), so I included them as well.
Let me know if I should do anything else in this PR. Thanks

@alexzarbn
Copy link
Member

Hi @v-radev,

Thank you for the PR! Merging ~

@alexzarbn alexzarbn merged commit bdc8d41 into tailflow:main Oct 13, 2023
51 checks passed
@v-radev v-radev deleted the feature/add-routing-methout-without-search branch October 13, 2023 05:46
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.

3 participants