Skip to content

Instantly share code, notes, and snippets.

@joshkh
Created January 17, 2019 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshkh/17f818bf02452fc0cf261ba99620501e to your computer and use it in GitHub Desktop.
Save joshkh/17f818bf02452fc0cf261ba99620501e to your computer and use it in GitHub Desktop.
blog-greedy-handler
```bash
# Hitting the proxy resource endpoint returns the query results from the Ionized handler
curl https://$(obfuscated-name).execute-api.us-east-1.amazonaws.com/dev/datomic -d :hat
#{["SKU-19" 28499341391953988 23934169113428033 false]
...
["SKU-55" 46139905947992133 32330039903125571 false]}
# Hitting a sub-resource returns the same thinng
curl https://$(obfuscated-name).execute-api.us-east-1.amazonaws.com/dev/datomic/some/nested-rout -d :hat
#{["SKU-19" 28499341391953988 23934169113428033 false]
...
["SKU-55" 46139905947992133 32330039903125571 false]}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment