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

Delete site by ID method tries to get the site_id from a query parameter rather than a parameter in the path #43

Open
tmcw opened this issue Aug 27, 2021 · 0 comments

Comments

@tmcw
Copy link
Contributor

tmcw commented Aug 27, 2021

In this line:

id, err := ctx.URLParamInt64("site_id")

This is looking for a site id like ?site_id=… rather than the URL path of /sites/{site_id}. Right now I can work around this limitation by doing /sites/20?site_id=20 but the code should be adjusted to handle a URL parameter instead.

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 a pull request may close this issue.

1 participant