drinkingvideogames/mixer

View on GitHub
api/services/genre/index.js

Summary

Maintainability
A
3 hrs
Test Coverage
const service = require('feathers-mongoose')
const model = require('./model')
const hooks = require('./hooks')
 
Similar blocks of code found in 2 locations. Consider refactoring.
module.exports = function () {
const app = this
 
let options = {
Model: model,
paginate: {
default: 25,
max: 25
}
}
 
app.use('/genres', service(options))
 
const genreService = app.service('genres')
genreService.before(hooks.before)
}