Skip to content

Commit

Permalink
Remove mirage aamc pcrs customizations
Browse files Browse the repository at this point in the history
Our new inflector rules seem to be working now.
  • Loading branch information
jrjohnson authored and stopfstedt committed Jul 1, 2024
1 parent 14b3bb2 commit b80ff02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/ilios-common/addon-mirage-support/get-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ const getAll = function (schema, request) {
//turn /api/programyears?limit=1 into 'programYears'
const modelRegex = /\/api\/([a-z]+).*/i;
let modelName = getName(request.url.match(modelRegex)[1]);
if ('aamcpcrses' === modelName.toLowerCase()) {
modelName = 'aamcPcrs';
}
if (!schema[modelName]) {
console.error(
'Mirage: The route handler for ' +
Expand Down
2 changes: 1 addition & 1 deletion packages/ilios-common/addon-mirage-support/get-name.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var models = [
'aamcMethods',
'aamcPcrs',
'aamcPcrses',
'academicYears',
'assessmentOptions',
'courseLearningMaterials',
Expand Down

0 comments on commit b80ff02

Please sign in to comment.