Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
syntax change for plugin dependencies (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedireza authored Feb 8, 2018
1 parent ff74067 commit 94fd949
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 10 deletions.
6 changes: 5 additions & 1 deletion server/api/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-accounts',
dependencies: ['auth', 'hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'auth',
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};
6 changes: 5 additions & 1 deletion server/api/admin-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-admin-groups',
dependencies: ['auth', 'hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'auth',
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};
6 changes: 5 additions & 1 deletion server/api/admins.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-admins',
dependencies: ['auth', 'hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'auth',
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};
5 changes: 4 additions & 1 deletion server/api/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-login',
dependencies: ['hapi-mongo-models', 'hapi-remote-address'],
dependencies: [
'hapi-mongo-models',
'hapi-remote-address'
],
register
};
6 changes: 5 additions & 1 deletion server/api/logout.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-logout',
dependencies: ['auth', 'hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'auth',
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};
1 change: 1 addition & 0 deletions server/api/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-main',
dependencies: [],
register
};
6 changes: 5 additions & 1 deletion server/api/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-sessions',
dependencies: ['auth', 'hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'auth',
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};
5 changes: 4 additions & 1 deletion server/api/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-signup',
dependencies: ['hapi-remote-address', 'hapi-mongo-models'],
dependencies: [
'hapi-mongo-models',
'hapi-remote-address'
],
register
};
6 changes: 5 additions & 1 deletion server/api/statuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-statuses',
dependencies: ['auth', 'hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'auth',
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};
6 changes: 5 additions & 1 deletion server/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ const register = function (server, serverOptions) {

module.exports = {
name: 'api-users',
dependencies: ['auth', 'hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'auth',
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};
5 changes: 4 additions & 1 deletion server/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const register = function (server, options) {

module.exports = {
name: 'auth',
dependencies: ['hapi-auth-basic', 'hapi-mongo-models'],
dependencies: [
'hapi-auth-basic',
'hapi-mongo-models'
],
register
};

0 comments on commit 94fd949

Please sign in to comment.