Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Clarify search.gov Site Handle Instructions & Update API Endpoint #227

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ searchgov:
# Only change this if you're using a CNAME. Learn more here: https://search.gov/manual/cname.html
endpoint: https://search.usa.gov

# Replace this with your search.gov account.
# Replace this with your search.gov site handle.
affiliate: federalist-uswds-example

# Replace this with your access key.
Expand Down
2 changes: 1 addition & 1 deletion search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//<![CDATA[

var urlParams = new URLSearchParams(window.location.search);
var searchEndpoint = new URL("{{site.searchgov.endpoint}}/api/v2/search/i14y");
var searchEndpoint = new URL("https://api.gsa.gov/technology/searchgov/v2/results/i14y");
params = { affiliate: "{{site.searchgov.affiliate}}", access_key: "{{site.searchgov.access_key}}", query: urlParams.get('query') }


Expand Down