No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
.gitattributes
LICENSE
README.md
google-maps.js
hivlocator.js
index.html
locator.php
styles.css

README.md

Avvo Proxy

This is an example proxy script for working with the HIV Locator API from a browser. It is meant for instructional purposes only, and should not be used in a production environment with additional security measures.

Usage

To call an API, pass your various parameters:

fetch('./locator.php?zip=30309')
.then(response => response.json())
.then(data => processTheData(data))

Any other parameters will be sent to the requested endpoint, so this should allow full access to the API. It is currently only meant for making GET requests; any POST/PUT/DELETE requests will fail in unexpected (but spectacular?!) ways.

Cheers!