-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael.Taylor
committed
Nov 30, 2021
1 parent
b865229
commit 0b9a8c1
Showing
11 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters