summaryrefslogtreecommitdiff
path: root/api/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/handlers.go')
-rw-r--r--api/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/handlers.go b/api/handlers.go
index 6813dc2..c9c3031 100644
--- a/api/handlers.go
+++ b/api/handlers.go
@@ -227,8 +227,8 @@ func (h *Handler) GetArticle(w http.ResponseWriter, r *http.Request) {
return
}
- url := "https://api.enterprise.wikimedia.com/v2/structured-contents/" + url.QueryEscape(article)
- req, err := http.NewRequestWithContext(ctx, "GET", url, nil)
+ base := "https://api.enterprise.wikimedia.com/v2/structured-contents/" + url.QueryEscape(article)
+ req, err := http.NewRequestWithContext(ctx, "GET", base+"?limit=1&filters[project]=en.wikipedia.org", nil)
if err != nil {
serverError(w, "could not build request")
return