You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- default: calls `${namespace}_${resource}_delete(IN jsonb, OUT jsonb)` PG function and responds to client with data (success) or error
61
61
62
-
### start(options)
62
+
### scrud.start(options)
63
63
Set global options and start API server
64
64
65
65
***Returns:*** Promise which with resolves with http.Server
@@ -72,8 +72,8 @@ Set global options and start API server
72
72
-**namespace** - *optional* - namespace to use in PG function calls (i.e. `${namespace}_${resource}_${action}`). If not set the PG function called will be `${resource}_${action}`
73
73
- type: `String`
74
74
- default: `null`
75
-
-**postgres** - *required if using DB backed actions* - configuration for [pg](https://github.com/brianc/node-postgres) connection
76
-
- type: `Object` matching config specs for [pg](https://github.com/brianc/node-postgres)
75
+
-**postgres** - *required if using DB backed actions* - configuration for [node-postgres](https://github.com/brianc/node-postgres) connection
76
+
- type: `Object` matching config specs for [node-postgres](https://github.com/brianc/node-postgres)
77
77
- default: `null`
78
78
-**jsonwebtoken** - *required for JWT authentication* - configuration for [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) connection
79
79
- type: `Object` that contains options from both the `sign` and `verify` methods at [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken)
0 commit comments