Skip to content

Commit

Permalink
fix: co-benifet typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael.Taylor committed Nov 30, 2021
1 parent b865229 commit 0b9a8c1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ProjectController from './project.controller';
import * as CoBenifetController from './co-benifet.controller';
import * as CoBenefitController from './co-benefit.controller';
import * as LocationController from './location.controller';
import * as RatingController from './rating.controller';
import * as QualificationController from './qualification.controller';
Expand All @@ -9,7 +9,7 @@ import * as VintageController from './vintages.controller';

export {
ProjectController,
CoBenifetController,
CoBenefitController,
LocationController,
RatingController,
QualificationController,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/models/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './projects';
export * from './co-benefits';
export * from './co-benifets';
export * from './locations';
export * from './ratings';
export * from './qualifications';
Expand Down
2 changes: 1 addition & 1 deletion src/models/units/units.model.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import stub from './units.stub.json';


class UnitModel {
static list(page = 0, limit = 10) {
Expand Down
17 changes: 17 additions & 0 deletions src/routes/v1/resources/co-benefits.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict';

import express from 'express';
import { CoBenefitController } from '../../../controllers';
const CoBenifetRouter = express.Router();

CoBenifetRouter.get('/', (req, res) => {
return req.query.id
? CoBenefitController.findOne(req, res)
: CoBenefitController.findAll(req, res);
});

CoBenifetRouter.post('/', CoBenefitController.create);
CoBenifetRouter.put('/', CoBenefitController.update);
CoBenifetRouter.delete('/', CoBenefitController.destroy);

export { CoBenifetRouter };
17 changes: 0 additions & 17 deletions src/routes/v1/resources/co-benifets.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/routes/v1/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export * from './qualifications';
export * from './ratings';
export * from './vintages';
export * from './related-projects';
export * from './co-benifets';
export * from './co-benefits';

0 comments on commit 0b9a8c1

Please sign in to comment.