-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static DB #6
Comments
Ok, let's talk about this. Right now you can pass a JSON file with pre-existing content: var webHooks = new WebHooks({
db: './webHooksDB.json' // json file that store webhook URLs
}); With an |
What I actually want to do is simply:
var obj = { hooks: [{}, {}] }; // complete config / in memory db
var webHooks = new WebHooks(obj);
I don't want to give a json file at all.
|
So we're referring to the in-memory storage: #4 . |
@simonschllng If this is still relevant, you may be interested in |
InMemory storage shipped with |
I am looking to implement webhook calls. I don't need a dynamic DB so I would not make use of
add
, etc. Therefor it would be great to be able to use a static DB, checked into revision control along the project. What is the json syntax of the current db? Is the syntax stable?EDIT:
Ok, found it. Scrolled down too fast.
Would be nice to be able to set this as plain object.
The text was updated successfully, but these errors were encountered: