File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ function populateUser() {
1111 } ;
1212}
1313
14- export default function authenticationService ( ) {
15- const app = this ;
16-
14+ export default function authenticationService ( app ) {
1715 const config = app . get ( 'config' ) . auth ;
1816
1917 app
Original file line number Diff line number Diff line change 11import _ from 'lodash' ;
22import { SOCKET_KEY } from '@feathersjs/socketio' ;
33
4- export default function customService ( ) {
5- const app = this ;
6-
4+ export default function customService ( app ) {
75 app . use ( '/load-info' , ( req , res ) => {
86 res . json ( {
97 message : 'This came from the api server' ,
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ import custom from './custom';
33import users from './users' ;
44import messages from './messages' ;
55
6- export default function services ( ) {
7- const app = this ;
8-
6+ export default function services ( app ) {
97 app . configure ( authentication ) ;
108 app . configure ( custom ) ;
119 app . configure ( users ) ;
Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ const updateVisitors = app => {
1313 } ) ;
1414} ;
1515
16- export default function messagesService ( ) {
17- const app = this ;
18-
16+ export default function messagesService ( app ) {
1917 const options = {
2018 Model : new NeDB ( {
2119 filename : `${ __dirname } /messages.nedb` ,
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ import feathersNedb from 'feathers-nedb';
22import NeDB from 'nedb' ;
33import hooks from './hooks' ;
44
5- export default function userService ( ) {
6- const app = this ;
7-
5+ export default function userService ( app ) {
86 const options = {
97 Model : new NeDB ( {
108 filename : `${ __dirname } /users.nedb` ,
You can’t perform that action at this time.
0 commit comments