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

fix: AttachRoutes() and WithRouter() should accept chi.Router #254

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

blgm
Copy link
Member

@blgm blgm commented Jun 6, 2023

The chi.Router interface should be accepted rather than the *chi.Mux contete type. This allows for the contrete type to be substututed in accordance with the Liskov substitution
principle
.

Resolves #253

The chi.Router interface should be accepted rather than the *chi.Mux
contete type. This allows for the contrete type to be substututed in
accordance with the [Liskov substitution
principle](https://en.wikipedia.org/wiki/Liskov_substitution_principle).

Resolves #253
@cf-gitbot
Copy link
Member

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/185342111

The labels on this github issue will be updated when the story is started.

Copy link

@JVecsei1 JVecsei1 left a comment

Choose a reason for hiding this comment

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

This resolves the issue described in #253. Thanks again! LGTM

@pivotal-marcela-campo pivotal-marcela-campo merged commit 0d038b6 into main Jun 13, 2023
@blgm blgm deleted the router branch June 19, 2023 10:07
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.

Use chi.Router interface for AttachRoutes method
4 participants