{"size": 648, "ext": "js", "max_stars_repo_path": "src/services/etudiant/etudiant.service.js", "max_stars_repo_name": "MomarNdiaye/Codification-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/services/etudiant/etudiant.service.js", "max_issues_repo_name": "MomarNdiaye/Codification-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/services/etudiant/etudiant.service.js", "max_forks_repo_name": "MomarNdiaye/Codification-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.0, "max_line_length": 74, "alphanum_fraction": 0.6975308642}
// Initializes the `etudiant` service on path `/etudiant`
const createService = require('feathers-sequelize');
const createModel = require('../../models/etudiant.model');
const hooks = require('./etudiant.hooks');

module.exports = function (app) {
  const Model = createModel(app);
  const paginate = app.get('paginate');

  const options = {
    name: 'etudiant',
    Model,
    paginate
  };

  // Initialize our service with any options it requires
  app.use('/etudiant', createService(options));

  // Get our initialized service so that we can register hooks and filters
  const service = app.service('etudiant');

  service.hooks(hooks);
};
