We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At week_1/http/cmd/http_client/main.go this line
getPostfix = "/notes/%d"
has to be
getPostfix = "/notes/{id}"
because otherwise each time you client call the server it always get 404.
From go-chi docs:
// Regexp url parameters: r.Get("/{articleSlug:[a-z-]+}", getArticleBySlug) // GET /articles/home-is-toronto
The text was updated successfully, but these errors were encountered:
const ( getPostfix = "/notes/%s" // Use a string parameter )
r.Get(fmt.Sprintf(getPostfix, "{id}"), getNoteHandler)
Sorry, something went wrong.
No branches or pull requests
At week_1/http/cmd/http_client/main.go
this line
has to be
because otherwise each time you client call the server it always get 404.
From go-chi docs:
The text was updated successfully, but these errors were encountered: