1234567891011121314151617181920 |
- 'use strict';
- const _ = require('lodash');
- const { AxiosService } = require('naf-framework-mongoose/lib/service');
- const meta = {
- create: {
- uri: '/enrollments',
- method: 'post',
- },
- };
- class StudentService extends AxiosService {
- constructor(ctx) {
- super(ctx, meta, _.get(ctx.app.config, 'axios.stud'));
- this.model = this.ctx.model.Enrollment;
- }
- }
- module.exports = StudentService;
|