https://github.com/wejs/we-plugin-user-settings
We.js plugin to add one url for get user and system settings
https://github.com/wejs/we-plugin-user-settings
wejs
Last synced: 3 months ago
JSON representation
We.js plugin to add one url for get user and system settings
- Host: GitHub
- URL: https://github.com/wejs/we-plugin-user-settings
- Owner: wejs
- Created: 2017-02-06T23:58:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-15T11:29:03.000Z (over 6 years ago)
- Last Synced: 2025-03-14T11:38:15.432Z (3 months ago)
- Topics: wejs
- Language: JavaScript
- Size: 46.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# We.js user settings plugin
We.js plugin to expose user and system settings
## URls
### Get user settings
`get /user-settings`
## Hooks
### we-plugin-user-settings:getCurrentUserSettings
Usage:
```js
we.hooks.on('we-plugin-user-settings:getCurrentUserSettings', function(ctx, done) {
// cosnt req = data.req,
// res = data.res;// change the ctx.data value and
done();
});
```## Links
* We.js site: http://wejs.org
## Copyright and license
Copyright Alberto Souza and contributors , under [the MIT license](https://github.com/wejs/we-core/blob/master/LICENSE.md).
## Sponsored by
- Linky Systems: https://linkysystems.com