-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5355f12
commit 54d6919
Showing
4 changed files
with
61 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
// Initializes the `articles` service on path `/articles` | ||
const createService = require('./articles.class.js'); | ||
const hooks = require('./articles.hooks'); | ||
const createService = require('./articles.class') | ||
const hooks = require('./articles.hooks') | ||
|
||
module.exports = function (app) { | ||
const paginate = app.get('paginate'); | ||
const paginate = app.get('paginate') | ||
|
||
const options = { | ||
name: 'articles', | ||
paginate, | ||
// need to pass config and queries to neo4j.service | ||
config: app.get('neo4j'), | ||
app, | ||
}; | ||
} | ||
|
||
// Initialize our service with any options it requires | ||
app.use('/articles', createService(options)); | ||
app.use('/articles', createService(options)) | ||
|
||
// Get our initialized service so that we can register hooks and filters | ||
const service = app.service('articles'); | ||
const service = app.service('articles') | ||
|
||
service.hooks(hooks); | ||
}; | ||
service.hooks(hooks) | ||
} |