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 show handler #2060

Merged
merged 1 commit into from
Jan 19, 2024
Merged

fix show handler #2060

merged 1 commit into from
Jan 19, 2024

Conversation

mxyng
Copy link
Contributor

@mxyng mxyng commented Jan 18, 2024

the show handler is unique in the sense that the request struct is passed directly to GetModel while every other handler deconstructs the request into its parameters. therefore the pattern of setting a local variable model and setting it to req.Model or req.Name doesn't work

@mxyng mxyng merged commit d017e3d into main Jan 19, 2024
10 checks passed
@mxyng mxyng deleted the mxyng/fix-show branch January 19, 2024 00:02
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.

None yet

2 participants