0.0.2
π Features added
- GET responds with 404 error when database returned empty result
- add
get_list
verb to support GET with a list of objects - add support for DELETE requests
- add support for POST requests
- add support for PUT requests
- add support for parameter prefixes in order to be able to explicitly bind to a desired origin
- generate endpoints in a separate file (
routes.js
) - route parameters now can be passed as named parameters to SQL queries
π Bugs fixed
- add a missing comma to fix syntax error
- correctly join a multi-line query when the 2nd line doesn't start with a leading space
- don't pass the same parameters many times when they are used more than once in a query
- GET's response has been changed from a value to an object:
10
becomes{"counter": 10}