MCPcopy
hub / github.com/go-chi/chi / SearchArticles

Function SearchArticles

_examples/rest/main.go:149–151  ·  view source on GitHub ↗

SearchArticles searches the Articles data for a matching article. It's just a stub, but you get the idea.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

147// SearchArticles searches the Articles data for a matching article.
148// It's just a stub, but you get the idea.
149func SearchArticles(w http.ResponseWriter, r *http.Request) {
150 render.RenderList(w, r, NewArticleListResponse(articles))
151}
152
153// CreateArticle persists the posted Article and returns it
154// back to the client as an acknowledgement.

Callers

nothing calls this directly

Calls 1

NewArticleListResponseFunction · 0.85

Tested by

no test coverage detected