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

Trigger NotFound404Controller if no Route was found #11

Merged
merged 5 commits into from
Apr 18, 2023

Conversation

Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Apr 17, 2023

📚 Description

Inspired by the issue: #10 but instead of throwing an exception, simply change the header location to 404.

🔖 Changes

  • Create a NotFound404Controller
  • Create a new Route using the NotFound404Controller if no route was found
  • Rename tests folder from Unit to Feature
  • Create a parent TestCase for those mocking the header()

@Chemaclass Chemaclass added the enhancement New feature or request label Apr 17, 2023
@Chemaclass Chemaclass self-assigned this Apr 17, 2023
Copy link
Member

@antonio-gg-dev antonio-gg-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like the changes you have made @Chemaclass , although I have left you a couple of comments that I think you should fix, I approve it to speed up.

@Chemaclass Chemaclass merged commit 323c811 into main Apr 18, 2023
@Chemaclass Chemaclass deleted the route-not-found-404 branch April 18, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants