drinkingvideogames/mixer

View on GitHub
api/services/asset/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: 5,
max: 25
}
}
 
app.use('/assets', service(options))
 
const assetService = app.service('assets')
assetService.before(hooks.before)
}